mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fix(etcd): log same port argument
This commit is contained in:
parent
17cfe22a55
commit
f946ff0aab
6
etcd.go
6
etcd.go
@ -444,11 +444,11 @@ func startClientTransport(port int, st int) {
|
|||||||
switch st {
|
switch st {
|
||||||
|
|
||||||
case HTTP:
|
case HTTP:
|
||||||
fmt.Printf("etcd [%s] listen on http port %v\n", hostname, clientPort)
|
fmt.Printf("etcd [%s] listen on http port %v\n", hostname, port)
|
||||||
fatal(http.ListenAndServe(fmt.Sprintf(":%d", port), nil))
|
fatal(http.ListenAndServe(fmt.Sprintf(":%d", port), nil))
|
||||||
|
|
||||||
case HTTPS:
|
case HTTPS:
|
||||||
fmt.Printf("etcd [%s] listen on https port %v\n", hostname, clientPort)
|
fmt.Printf("etcd [%s] listen on https port %v\n", hostname, port)
|
||||||
http.ListenAndServeTLS(fmt.Sprintf(":%d", port), clientCertFile, clientKeyFile, nil)
|
http.ListenAndServeTLS(fmt.Sprintf(":%d", port), clientCertFile, clientKeyFile, nil)
|
||||||
|
|
||||||
case HTTPSANDVERIFY:
|
case HTTPSANDVERIFY:
|
||||||
@ -460,7 +460,7 @@ func startClientTransport(port int, st int) {
|
|||||||
},
|
},
|
||||||
Addr: fmt.Sprintf(":%d", port),
|
Addr: fmt.Sprintf(":%d", port),
|
||||||
}
|
}
|
||||||
fmt.Printf("etcd [%s] listen on https port %v\n", hostname, clientPort)
|
fmt.Printf("etcd [%s] listen on https port %v\n", hostname, port)
|
||||||
fatal(server.ListenAndServeTLS(clientCertFile, clientKeyFile))
|
fatal(server.ListenAndServeTLS(clientCertFile, clientKeyFile))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user