mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Move flag code out of init into main.
This commit is contained in:
parent
3f4f5d2292
commit
eaa82b8f9a
1 changed files with 2 additions and 5 deletions
|
@ -229,9 +229,9 @@ func ipHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Write([]byte(remoteAddr))
|
w.Write([]byte(remoteAddr))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
var cert, cert_key, http_port, https_port string
|
var cert, cert_key, http_port, https_port string
|
||||||
|
|
||||||
func init() {
|
|
||||||
flag.StringVar(&cert, "cert", "", "TLS certificate file")
|
flag.StringVar(&cert, "cert", "", "TLS certificate file")
|
||||||
flag.StringVar(&cert_key, "key", "", "TLS key file")
|
flag.StringVar(&cert_key, "key", "", "TLS key file")
|
||||||
|
|
||||||
|
@ -250,9 +250,6 @@ func init() {
|
||||||
|
|
||||||
log.Println("Using cert file:", cert)
|
log.Println("Using cert file:", cert)
|
||||||
log.Println("Using cert key file: ", cert_key)
|
log.Println("Using cert key file: ", cert_key)
|
||||||
}
|
|
||||||
|
|
||||||
func main() {
|
|
||||||
|
|
||||||
ctx := NewBrokerContext()
|
ctx := NewBrokerContext()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue