mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
add version output to log
This commit is contained in:
parent
33248f3dec
commit
4ebd85e5d1
3 changed files with 6 additions and 0 deletions
|
@ -203,6 +203,8 @@ func main() {
|
||||||
log.SetOutput(&safelog.LogScrubber{Output: logOutput})
|
log.SetOutput(&safelog.LogScrubber{Output: logOutput})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Printf("snowflake-client %s\n", version.GetVersion())
|
||||||
|
|
||||||
iceAddresses := strings.Split(strings.TrimSpace(*iceServersCommas), ",")
|
iceAddresses := strings.Split(strings.TrimSpace(*iceServersCommas), ",")
|
||||||
|
|
||||||
config := sf.ClientConfig{
|
config := sf.ClientConfig{
|
||||||
|
|
|
@ -117,6 +117,8 @@ func main() {
|
||||||
periodicEventLogger := sf.NewProxyEventLogger(*SummaryInterval, eventlogOutput)
|
periodicEventLogger := sf.NewProxyEventLogger(*SummaryInterval, eventlogOutput)
|
||||||
eventLogger.AddSnowflakeEventListener(periodicEventLogger)
|
eventLogger.AddSnowflakeEventListener(periodicEventLogger)
|
||||||
|
|
||||||
|
log.Printf("snowflake-proxy %s\n", version.GetVersion())
|
||||||
|
|
||||||
err := proxy.Start()
|
err := proxy.Start()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
|
|
@ -165,6 +165,8 @@ func main() {
|
||||||
log.SetOutput(&safelog.LogScrubber{Output: logOutput})
|
log.SetOutput(&safelog.LogScrubber{Output: logOutput})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Printf("snowflake-server %s\n", version.GetVersion())
|
||||||
|
|
||||||
if !disableTLS && acmeHostnamesCommas == "" {
|
if !disableTLS && acmeHostnamesCommas == "" {
|
||||||
log.Fatal("the --acme-hostnames option is required")
|
log.Fatal("the --acme-hostnames option is required")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue