Browse Source

pr comment: set public listen port

Abhishek Kondur 2 years ago
parent
commit
a50242e2f9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      models/api_host.go

+ 1 - 0
models/api_host.go

@@ -89,6 +89,7 @@ func (a *ApiHost) ConvertAPIHostToNMHost(currentHost *Host) *Host {
 	h.IsStatic = a.IsStatic
 	h.ListenPort = a.ListenPort
 	h.ProxyListenPort = a.ProxyListenPort
+	h.PublicListenPort = currentHost.PublicListenPort
 	h.MTU = a.MTU
 	h.MacAddress = currentHost.MacAddress
 	h.PublicKey = currentHost.PublicKey