[REV] allow return port=0

This commit is contained in:
GLYASAI 2018-12-07 21:28:12 +08:00
parent c985858b6f
commit 1f9df41790

View File

@ -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)
}