瀏覽代碼

add local address field to host model

Abhishek Kondur 2 年之前
父節點
當前提交
149b608850
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      models/host.go

+ 1 - 0
models/host.go

@@ -24,6 +24,7 @@ type Host struct {
 	Interface        string           `json:"interface" yaml:"interface"`
 	Debug            bool             `json:"debug" yaml:"debug"`
 	ListenPort       int              `json:"listenport" yaml:"listenport"`
+	LocalAddress     net.IPNet        `json:"localaddress" yaml:"localaddress"`
 	LocalRange       net.IPNet        `json:"localrange" yaml:"localrange"`
 	LocalListenPort  int              `json:"locallistenport" yaml:"locallistenport"`
 	ProxyListenPort  int              `json:"proxy_listen_port" yaml:"proxy_listen_port"`