Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
obfs4-deprecated
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leap
obfs4-deprecated
Commits
83c9e3b9
Commit
83c9e3b9
authored
10 years ago
by
Yawning Angel
Browse files
Options
Downloads
Patches
Plain Diff
Add a ChangeLog and dump the version when invoked with "-v".
parent
1e574942
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+2
-0
2 additions, 0 deletions
ChangeLog
obfs4proxy/obfs4proxy.go
+11
-0
11 additions, 0 deletions
obfs4proxy/obfs4proxy.go
with
13 additions
and
0 deletions
ChangeLog
0 → 100644
+
2
−
0
View file @
83c9e3b9
Changes in version 0.0.1 - NOT YET RELEASED
- Initial release.
This diff is collapsed.
Click to expand it.
obfs4proxy/obfs4proxy.go
+
11
−
0
View file @
83c9e3b9
...
...
@@ -51,6 +51,7 @@ import (
)
const
(
obfs4proxyVersion
=
"0.0.1"
obfs4proxyLogFile
=
"obfs4proxy.log"
socksAddr
=
"127.0.0.1:0"
elidedAddr
=
"[scrubbed]"
...
...
@@ -374,13 +375,23 @@ func ptInitializeLogging(enable bool) error {
return
nil
}
func
version
()
{
fmt
.
Printf
(
"obfs4proxy-%s
\n
"
,
obfs4proxyVersion
)
os
.
Exit
(
0
)
}
func
main
()
{
// Handle the command line arguments.
_
,
execName
:=
path
.
Split
(
os
.
Args
[
0
])
showVer
:=
flag
.
Bool
(
"v"
,
false
,
"Print version and exit"
)
flag
.
BoolVar
(
&
enableLogging
,
"enableLogging"
,
false
,
"Log to TOR_PT_STATE_LOCATION/"
+
obfs4proxyLogFile
)
flag
.
BoolVar
(
&
unsafeLogging
,
"unsafeLogging"
,
false
,
"Disable the address scrubber"
)
flag
.
Parse
()
if
*
showVer
{
version
()
}
// Determine if this is a client or server, initialize logging, and finish
// the pt configuration.
var
ptListeners
[]
net
.
Listener
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment