fix bug: invited/kick failed due to json tag validation

This commit is contained in:
skiffer-git
2022-09-15 15:52:48 +08:00
parent 1b31de18e4
commit 6759e0c25b
3 changed files with 14 additions and 5 deletions
-1
View File
@@ -65,7 +65,6 @@ func main() {
defaultPorts := config.Config.Demo.Port
ginPort := flag.Int("port", defaultPorts[0], "get ginServerPort from cmd,default 10004 as port")
flag.Parse()
fmt.Println("start demo api server, port: ", *ginPort)
address := "0.0.0.0:" + strconv.Itoa(*ginPort)
if config.Config.Api.ListenIP != "" {
address = config.Config.Api.ListenIP + ":" + strconv.Itoa(*ginPort)