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
e7f075d4
Commit
e7f075d4
authored
3 years ago
by
Benjamin Erhart
Browse files
Options
Downloads
Patches
Plain Diff
Updated to latest Snowflake main.
parent
81d7c84e
Branches
Branches containing commit
No related tags found
1 merge request
!2
update to v 1.7.1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
IPtProxy.go/IPtProxy.go
+1
-1
1 addition, 1 deletion
IPtProxy.go/IPtProxy.go
snowflake
+1
-1
1 addition, 1 deletion
snowflake
snowflake.patch
+5
-6
5 additions, 6 deletions
snowflake.patch
with
7 additions
and
8 deletions
IPtProxy.go/IPtProxy.go
+
1
−
1
View file @
e7f075d4
...
...
@@ -362,7 +362,7 @@ func IsPortAvailable(port int) bool {
return
false
}
// IsSnowflakeProxyRunning - Checks to see if a snowflake proxy is running in your app
// IsSnowflakeProxyRunning - Checks to see if a snowflake proxy is running in your app
.
func
IsSnowflakeProxyRunning
()
bool
{
return
snowflakeProxy
!=
nil
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
snowflake
@
99eb794a
Subproject commit
e6e5e20ae8b5883b37f5dea656540825e237d820
Subproject commit
99eb794a2057fc7d7f6549f4eb39bb456d006904
This diff is collapsed.
Click to expand it.
snowflake.patch
+
5
−
6
View file @
e7f075d4
...
...
@@ -78,19 +78,18 @@ index 5a00206..290a121 100644
+ sigChan <- syscall.SIGTERM
+}
diff --git a/proxy/lib/snowflake.go b/proxy/lib/snowflake.go
index 8747f66..
735c433
100644
index 8747f66..
452c830
100644
--- a/proxy/lib/snowflake.go
+++ b/proxy/lib/snowflake.go
@@ -117,6 +117,
8
@@
type SnowflakeProxy struct {
@@ -117,6 +117,
7
@@
type SnowflakeProxy struct {
NATTypeMeasurementInterval time.Duration
EventDispatcher event.SnowflakeEventDispatcher
shutdown chan struct{}
+
+ ClientConnectedCallback func()
}
// Checks whether an IP address is a remote address for the client
@@ -199,7 +20
1
,7 @@
func (s *SignalingServer) pollOffer(sid string, shutdown chan struct{}) *webrtc.
@@ -199,7 +20
0
,7 @@
func (s *SignalingServer) pollOffer(sid string, shutdown chan struct{}) *webrtc.
default:
numClients := int((tokens.count() / 8) * 8) // Round down to 8
currentNATTypeLoaded := getCurrentNATType()
...
...
@@ -99,7 +98,7 @@ index 8747f66..735c433 100644
if err != nil {
log.Printf("Error encoding poll message: %s", err.Error())
return nil
@@ -495,6 +49
7
,8 @@
func (sf *SnowflakeProxy) runSession(sid string) {
@@ -495,6 +49
6
,8 @@
func (sf *SnowflakeProxy) runSession(sid string) {
select {
case <-dataChan:
log.Println("Connection successful.")
...
...
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