hsync: add extra_hosts option

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel
2022-10-06 19:02:03 +02:00
parent d5b66b1114
commit f9d6702082
11 changed files with 479 additions and 68 deletions

View File

@@ -86,6 +86,8 @@ type InterfaceSettings struct {
HostName string `koanf:"hostname,omitempty"`
Domain string `koanf:"domain,omitempty"`
ExtraHosts map[string][]net.IPAddr `koanf:"extra_hosts,omitempty"`
MTU int `koanf:"mtu,omitempty"`
DNS []net.IPAddr `koanf:"dns,omitempty"`
Addresses []net.IPNet `koanf:"addresses,omitempty"`