Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Anti-censorship
Pluggable Transports
Snowflake
Commits
6cecd31f
Commit
6cecd31f
authored
Aug 21, 2016
by
Arlo Breault
Browse files
Log to TOR_PT_STATE_LOCATION
parent
ac9d49b8
Changes
1
Show whitespace changes
Inline
Side-by-side
client/snowflake.go
View file @
6cecd31f
...
...
@@ -9,6 +9,7 @@ import (
"net"
"os"
"os/signal"
"path"
"sync"
"syscall"
"time"
...
...
@@ -121,7 +122,11 @@ func copyLoop(a, b io.ReadWriter) {
func
main
()
{
webrtc
.
SetLoggingVerbosity
(
1
)
logFile
,
err
:=
os
.
OpenFile
(
"snowflake.log"
,
stateDir
,
err
:=
pt
.
MakeStateDir
()
if
err
!=
nil
{
log
.
Fatal
(
err
)
}
logFile
,
err
:=
os
.
OpenFile
(
path
.
Join
(
stateDir
,
"snowflake.log"
),
os
.
O_CREATE
|
os
.
O_APPEND
|
os
.
O_WRONLY
,
0600
)
if
err
!=
nil
{
log
.
Fatal
(
err
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment