Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gost
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
gost
Commits
821ab4d3
Commit
821ab4d3
authored
Aug 04, 2017
by
rui.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix https server crash
parent
c28e7125
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
node.go
node.go
+0
-5
tls.go
tls.go
+1
-1
No files found.
node.go
View file @
821ab4d3
...
@@ -5,8 +5,6 @@ import (
...
@@ -5,8 +5,6 @@ import (
"net/url"
"net/url"
"strconv"
"strconv"
"strings"
"strings"
"github.com/go-log/log"
)
)
// Node is a proxy node, mainly used to construct a proxy chain.
// Node is a proxy node, mainly used to construct a proxy chain.
...
@@ -89,8 +87,5 @@ func Can(action string, addr string, whitelist, blacklist *Permissions) bool {
...
@@ -89,8 +87,5 @@ func Can(action string, addr string, whitelist, blacklist *Permissions) bool {
return
false
return
false
}
}
if
Debug
{
log
.
Logf
(
"Can action: %s, host: %s, port %d"
,
action
,
host
,
port
)
}
return
whitelist
.
Can
(
action
,
host
,
port
)
&&
!
blacklist
.
Can
(
action
,
host
,
port
)
return
whitelist
.
Can
(
action
,
host
,
port
)
&&
!
blacklist
.
Can
(
action
,
host
,
port
)
}
}
tls.go
View file @
821ab4d3
...
@@ -41,7 +41,7 @@ func TLSListener(addr string, config *tls.Config) (Listener, error) {
...
@@ -41,7 +41,7 @@ func TLSListener(addr string, config *tls.Config) (Listener, error) {
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
return
&
tlsListener
{
tcpKeepAliveListener
{
ln
.
(
*
net
.
TCPListener
)}
},
nil
return
&
tlsListener
{
ln
},
nil
}
}
// Wrap a net.Conn into a client tls connection, performing any
// Wrap a net.Conn into a client tls connection, performing any
...
...
Write
Preview
Markdown
is supported
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