Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
IPtProxy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
Android Libs
IPtProxy
Commits
7f243f98
Commit
7f243f98
authored
3 years ago
by
Benjamin Erhart
Browse files
Options
Downloads
Patches
Plain Diff
Improved donated `SnowflakeVersion` code.
parent
8cbe72ec
Branches
Branches containing commit
No related tags found
1 merge request
!2
update to v 1.7.1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
IPtProxy.go/IPtProxy.go
+9
-5
9 additions, 5 deletions
IPtProxy.go/IPtProxy.go
with
9 additions
and
5 deletions
IPtProxy.go/IPtProxy.go
+
9
−
5
View file @
7f243f98
...
...
@@ -99,22 +99,26 @@ func Obfs4ProxyVersion() string {
return
obfs4proxy
.
Obfs4proxyVersion
}
// Snowflake
Proxy
Version - The version of Snowflake bundled with IPtProxy
// SnowflakeVersion - The version of Snowflake bundled with IPtProxy
.
//
//goland:noinspection GoUnusedExportedFunction
func
Snowflake
Proxy
Version
()
string
{
func
SnowflakeVersion
()
string
{
bi
,
ok
:=
debug
.
ReadBuildInfo
()
if
!
ok
{
log
.
Printf
(
"Failed to read build info"
)
return
""
}
for
_
,
dep
:=
range
bi
.
Deps
{
if
(
dep
.
Path
==
"git.torproject.org/pluggable-transports/snowflake.git/v2"
)
{
if
dep
.
Path
==
"git.torproject.org/pluggable-transports/snowflake.git/v2"
{
if
dep
.
Version
[
0
:
1
]
==
"v"
{
return
dep
.
Version
[
1
:
len
(
dep
.
Version
)]
}
else
{
return
dep
.
Version
}
}
}
return
""
}
...
...
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