From 1f9df41790dd08b8de5c306e5ec0051546906d38 Mon Sep 17 00:00:00 2001 From: GLYASAI Date: Fri, 7 Dec 2018 21:28:12 +0800 Subject: [PATCH] [REV] allow return port=0 --- api/controller/resources.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/controller/resources.go b/api/controller/resources.go index a958fa5a0..9d2344887 100644 --- a/api/controller/resources.go +++ b/api/controller/resources.go @@ -1426,7 +1426,7 @@ func (t *TenantStruct) PortOuterController(w http.ResponseWriter, r *http.Reques } else { rc["port"] = "10080" } - } else if vsPort != nil && vsPort.Port != 0 { + } else if vsPort != nil { rc["domain"] = mm[0] rc["port"] = fmt.Sprintf("%v", vsPort.Port) }