Browse Source

change json field for public port

Abhishek Kondur 2 years ago
parent
commit
6b3a636ca9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/host.go

+ 1 - 1
models/host.go

@@ -26,7 +26,7 @@ type Host struct {
 	ListenPort       int              `json:"listenport" yaml:"listenport"`
 	LocalAddress     net.IPNet        `json:"localaddress" yaml:"localaddress"`
 	LocalRange       net.IPNet        `json:"localrange" yaml:"localrange"`
-	PublicListenPort int              `json:"proxy_public_listen_port" yaml:"proxy_public_listen_port"`
+	PublicListenPort int              `json:"public_listen_port" yaml:"public_listen_port"`
 	ProxyListenPort  int              `json:"proxy_listen_port" yaml:"proxy_listen_port"`
 	MTU              int              `json:"mtu" yaml:"mtu"`
 	PublicKey        wgtypes.Key      `json:"publickey" yaml:"publickey"`