You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/server.go
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -42,17 +42,17 @@ goc server --port=localhost:8080
42
42
iferr!=nil {
43
43
log.Fatalf("New file based server failed, err: %v", err)
44
44
}
45
-
server.IPRevise=iprevise
45
+
server.IPRevise=IPRevise
46
46
server.Run(port)
47
47
},
48
48
}
49
49
50
50
varport, localPersistencestring
51
-
variprevisebool
51
+
varIPRevisebool
52
52
53
53
funcinit() {
54
54
serverCmd.Flags().StringVarP(&port, "port", "", ":7777", "listen port to start a coverage host center")
55
55
serverCmd.Flags().StringVarP(&localPersistence, "local-persistence", "", "_svrs_address.txt", "the file to save services address information")
56
-
serverCmd.Flags().BoolVarP(&iprevise, "ip_revise", "", true, "setting the network type(default:regist server use proxy or under nat、same network ect,direct:use register request parm)")
56
+
serverCmd.Flags().BoolVarP(&IPRevise, "ip_revise", "", true, "whether to do ip revise during registering. Recommend to set this as false if under NAT or Proxy environment")
0 commit comments