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
2e77076e
Commit
2e77076e
authored
Oct 06, 2016
by
rui.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix log
parent
dc640846
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
socks.go
socks.go
+1
-1
ss.go
ss.go
+2
-2
No files found.
socks.go
View file @
2e77076e
...
...
@@ -494,7 +494,7 @@ func (s *Socks5Server) bindOn(addr string) {
glog
.
V
(
LINFO
)
.
Infof
(
"[socks5-bind] %s >-< %s"
,
s
.
conn
.
RemoteAddr
(),
pconn
.
RemoteAddr
())
return
case
err
:=
<-
pipe
()
:
glog
.
V
(
LWARNING
)
.
Infof
(
"[socks5-bind] %s -> %s : %
s
"
,
s
.
conn
.
RemoteAddr
(),
addr
,
err
)
glog
.
V
(
LWARNING
)
.
Infof
(
"[socks5-bind] %s -> %s : %
v
"
,
s
.
conn
.
RemoteAddr
(),
addr
,
err
)
ln
.
Close
()
return
}
...
...
ss.go
View file @
2e77076e
...
...
@@ -65,7 +65,7 @@ func (s *ShadowServer) Serve() {
glog
.
V
(
LINFO
)
.
Infof
(
"[ss] %s >-< %s"
,
s
.
conn
.
RemoteAddr
(),
addr
)
}
// This func
are
copied from shadowsocks library with some modification.
// This func
tion is
copied from shadowsocks library with some modification.
func
(
s
*
ShadowServer
)
getRequest
()
(
host
string
,
ota
bool
,
err
error
)
{
// buf size should at least have the same size with the largest possible
// request size (when addrType is 3, domain name has at most 256 bytes)
...
...
@@ -138,7 +138,7 @@ const (
// copyOta copies data from src to dst with ota verification.
//
// This func
are
copied from shadowsocks library with some modification.
// This func
tion is
copied from shadowsocks library with some modification.
func
(
s
*
ShadowServer
)
copyOta
(
dst
net
.
Conn
,
src
*
ss
.
Conn
)
(
int64
,
error
)
{
// sometimes it have to fill large block
buf
:=
make
([]
byte
,
LargeBufferSize
)
...
...
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