|
@@ -39,7 +39,6 @@ var (
|
|
|
|
|
|
bindAddr string
|
|
bindAddr string
|
|
bindPort int
|
|
bindPort int
|
|
- bindUDPPort int
|
|
|
|
kcpBindPort int
|
|
kcpBindPort int
|
|
proxyBindAddr string
|
|
proxyBindAddr string
|
|
vhostHTTPPort int
|
|
vhostHTTPPort int
|
|
@@ -70,7 +69,6 @@ func init() {
|
|
|
|
|
|
rootCmd.PersistentFlags().StringVarP(&bindAddr, "bind_addr", "", "0.0.0.0", "bind address")
|
|
rootCmd.PersistentFlags().StringVarP(&bindAddr, "bind_addr", "", "0.0.0.0", "bind address")
|
|
rootCmd.PersistentFlags().IntVarP(&bindPort, "bind_port", "p", 7000, "bind port")
|
|
rootCmd.PersistentFlags().IntVarP(&bindPort, "bind_port", "p", 7000, "bind port")
|
|
- rootCmd.PersistentFlags().IntVarP(&bindUDPPort, "bind_udp_port", "", 0, "bind udp port")
|
|
|
|
rootCmd.PersistentFlags().IntVarP(&kcpBindPort, "kcp_bind_port", "", 0, "kcp bind udp port")
|
|
rootCmd.PersistentFlags().IntVarP(&kcpBindPort, "kcp_bind_port", "", 0, "kcp bind udp port")
|
|
rootCmd.PersistentFlags().StringVarP(&proxyBindAddr, "proxy_bind_addr", "", "0.0.0.0", "proxy bind address")
|
|
rootCmd.PersistentFlags().StringVarP(&proxyBindAddr, "proxy_bind_addr", "", "0.0.0.0", "proxy bind address")
|
|
rootCmd.PersistentFlags().IntVarP(&vhostHTTPPort, "vhost_http_port", "", 0, "vhost http port")
|
|
rootCmd.PersistentFlags().IntVarP(&vhostHTTPPort, "vhost_http_port", "", 0, "vhost http port")
|
|
@@ -159,7 +157,6 @@ func parseServerCommonCfgFromCmd() (cfg config.ServerCommonConf, err error) {
|
|
|
|
|
|
cfg.BindAddr = bindAddr
|
|
cfg.BindAddr = bindAddr
|
|
cfg.BindPort = bindPort
|
|
cfg.BindPort = bindPort
|
|
- cfg.BindUDPPort = bindUDPPort
|
|
|
|
cfg.KCPBindPort = kcpBindPort
|
|
cfg.KCPBindPort = kcpBindPort
|
|
cfg.ProxyBindAddr = proxyBindAddr
|
|
cfg.ProxyBindAddr = proxyBindAddr
|
|
cfg.VhostHTTPPort = vhostHTTPPort
|
|
cfg.VhostHTTPPort = vhostHTTPPort
|