diff options
| author | Sebastiaan van Stijn <github@gone.nl> | 2022-06-05 21:25:02 +0200 |
|---|---|---|
| committer | Sebastiaan van Stijn <github@gone.nl> | 2022-06-29 19:55:03 +0200 |
| commit | 717a503590f5b864ee467d3d8e825748570d6e4b (patch) | |
| tree | 11716e9b859b43195e71532818b3a4da44f52172 /api/server | |
| parent | fee8a6a5c438320f978f327584323909cec3f259 (diff) | |
| download | docker-717a503590f5b864ee467d3d8e825748570d6e4b.tar.gz | |
api: add Hosts to API Config
This makes the API configuration more self-contained.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'api/server')
| -rw-r--r-- | api/server/server.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/server/server.go b/api/server/server.go index 89c2902427..5f01a8b1dd 100644 --- a/api/server/server.go +++ b/api/server/server.go @@ -27,6 +27,8 @@ type Config struct { Version string SocketGroup string TLSConfig *tls.Config + // Hosts is a list of addresses for the API to listen on. + Hosts []string } // Server contains instance details for the server |
