devlopment branch (#1736)
This commit is contained in:
@@ -73,11 +73,11 @@ func (s *ServerRunOptions) Validate() []error {
|
||||
return errs
|
||||
}
|
||||
|
||||
func (s *ServerRunOptions) AddFlags(fs *pflag.FlagSet) {
|
||||
func (s *ServerRunOptions) AddFlags(fs *pflag.FlagSet, c *ServerRunOptions) {
|
||||
|
||||
fs.StringVar(&s.BindAddress, "bind-address", "0.0.0.0", "server bind address")
|
||||
fs.IntVar(&s.InsecurePort, "insecure-port", 9090, "insecure port number")
|
||||
fs.IntVar(&s.SecurePort, "secure-port", 0, "secure port number")
|
||||
fs.StringVar(&s.TlsCertFile, "tls-cert-file", "", "tls cert file")
|
||||
fs.StringVar(&s.TlsPrivateKey, "tls-private-key", "", "tls private key")
|
||||
fs.StringVar(&s.BindAddress, "bind-address", c.BindAddress, "server bind address")
|
||||
fs.IntVar(&s.InsecurePort, "insecure-port", c.InsecurePort, "insecure port number")
|
||||
fs.IntVar(&s.SecurePort, "secure-port", s.SecurePort, "secure port number")
|
||||
fs.StringVar(&s.TlsCertFile, "tls-cert-file", c.TlsCertFile, "tls cert file")
|
||||
fs.StringVar(&s.TlsPrivateKey, "tls-private-key", c.TlsPrivateKey, "tls private key")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user