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
937b27dd
Commit
937b27dd
authored
Dec 16, 2021
by
openwrt2223
Committed by
ginuerzh
Dec 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:update package
parent
27dec2d2
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
118 additions
and
95 deletions
+118
-95
client.go
client.go
+1
-1
examples/ssu/ssu.go
examples/ssu/ssu.go
+1
-1
forward.go
forward.go
+1
-1
go.mod
go.mod
+38
-22
go.sum
go.sum
+64
-57
handler.go
handler.go
+2
-2
obfs.go
obfs.go
+3
-3
relay.go
relay.go
+3
-3
sni.go
sni.go
+1
-1
socks.go
socks.go
+2
-2
ss.go
ss.go
+2
-2
No files found.
client.go
View file @
937b27dd
...
...
@@ -7,7 +7,7 @@ import (
"net/url"
"time"
"github.com/g
inuerzh
/gosocks5"
"github.com/g
o-gost
/gosocks5"
)
// Client is a proxy client.
...
...
examples/ssu/ssu.go
View file @
937b27dd
...
...
@@ -6,7 +6,7 @@ import (
"net"
"strconv"
"github.com/g
inuerzh
/gosocks5"
"github.com/g
o-gost
/gosocks5"
ss
"github.com/shadowsocks/shadowsocks-go/shadowsocks"
)
...
...
forward.go
View file @
937b27dd
...
...
@@ -10,7 +10,7 @@ import (
"fmt"
"github.com/g
inuerzh
/gosocks5"
"github.com/g
o-gost
/gosocks5"
"github.com/go-log/log"
smux
"github.com/xtaci/smux"
)
...
...
go.mod
View file @
937b27dd
module github.com/ginuerzh/gost
go 1.1
6
go 1.1
7
require (
git.torproject.org/pluggable-transports/goptlib.git v0.0.0-20180321061416-7d56ec4f381e
git.torproject.org/pluggable-transports/obfs4.git v0.0.0-20181103133120-08f4d470188e
git.torproject.org/pluggable-transports/goptlib.git v1.2.0
github.com/LiamHaworth/go-tproxy v0.0.0-20190726054950-ef7efd7f24ed
github.com/Yawning/chacha20 v0.0.0-20170904085104-e3b1f968fc63 // indirect
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
github.com/coreos/go-iptables v0.5.0 // indirect
github.com/docker/libcontainer v2.2.1+incompatible
github.com/g
inuerzh
/gosocks4 v0.0.1
github.com/g
inuerzh/gosocks5 v0.2
.0
github.com/g
inuerzh/tls-dissector v0.0.2-0.20200224064855-24ab2b3a3796
github.com/go-gost/
relay v0.1.0
github.com/g
o-gost
/gosocks4 v0.0.1
github.com/g
o-gost/gosocks5 v0.3
.0
github.com/g
o-gost/relay v0.1.1-0.20211123134818-8ef7fd81ffd7
github.com/go-gost/
tls-dissector v0.0.2-0.20211125135007-2b5d5bd9c07e
github.com/go-log/log v0.2.0
github.com/gobwas/glob v0.2.3
github.com/google/gopacket v1.1.19 // indirect
github.com/gorilla/websocket v1.4.2
github.com/klauspost/compress v1.11.12
github.com/klauspost/reedsolomon v1.9.12 // indirect
github.com/klauspost/compress v1.13.6
github.com/lucas-clemente/quic-go v0.24.0
github.com/miekg/dns v1.1.4
1
github.com/miekg/dns v1.1.4
3
github.com/milosgajdos/tenus v0.0.3
github.com/pkg/errors v0.9.1 // indirect
github.com/ryanuber/go-glob v1.0.0
github.com/shadowsocks/go-shadowsocks2 v0.1.
4
github.com/shadowsocks/shadowsocks-go v0.0.0-20
170121203516-97a5c71f80ba
github.com/shadowsocks/go-shadowsocks2 v0.1.
5
github.com/shadowsocks/shadowsocks-go v0.0.0-20
200409064450-3e585ff90601
github.com/songgao/water v0.0.0-20200317203138-2b4b6d7c09d8
github.com/xtaci/kcp-go v5.4.20+incompatible
github.com/xtaci/smux v1.5.16
github.com/xtaci/tcpraw v1.2.25
gitlab.com/yawning/obfs4.git v0.0.0-20210511220700-e330d1b7024b
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3
golang.org/x/net v0.0.0-20211215060638-4ddde0e984e9
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect
github.com/cheekybits/genny v1.0.0 // indirect
github.com/coreos/go-iptables v0.6.0 // indirect
github.com/dchest/siphash v1.2.2 // indirect
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 // indirect
github.com/google/gopacket v1.1.19 // indirect
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
github.com/klauspost/reedsolomon v1.9.15 // indirect
github.com/marten-seemann/qtls-go1-16 v0.1.4 // indirect
github.com/marten-seemann/qtls-go1-17 v0.1.0 // indirect
github.com/nxadm/tail v1.4.8 // indirect
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/riobard/go-bloom v0.0.0-20200614022211-cdc8013cb5b3 // indirect
github.com/templexxx/cpufeat v0.0.0-20180724012125-cef66df7f161 // indirect
github.com/templexxx/xor v0.0.0-20191217153810-f85b25db303b // indirect
github.com/tjfoc/gmsm v1.4.0 // indirect
github.com/xtaci/kcp-go v5.4.20+incompatible
github.com/tjfoc/gmsm v1.4.1 // indirect
github.com/xtaci/lossyconn v0.0.0-20200209145036-adba10fffc37 // indirect
github.com/xtaci/smux v1.5.15
github.com/xtaci/tcpraw v1.2.25
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781
golang.org/x/mod v0.5.1 // indirect
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/tools v0.1.8 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
)
go.sum
View file @
937b27dd
This diff is collapsed.
Click to expand it.
handler.go
View file @
937b27dd
...
...
@@ -7,8 +7,8 @@ import (
"net/url"
"time"
"github.com/g
inuerzh
/gosocks4"
"github.com/g
inuerzh
/gosocks5"
"github.com/g
o-gost
/gosocks4"
"github.com/g
o-gost
/gosocks5"
"github.com/go-log/log"
)
...
...
obfs.go
View file @
937b27dd
...
...
@@ -20,9 +20,9 @@ import (
"github.com/go-log/log"
pt
"git.torproject.org/pluggable-transports/goptlib.git"
"git
.torproject.org/pluggable-transports
/obfs4.git/transports/base"
"git
.torproject.org/pluggable-transports
/obfs4.git/transports/obfs4"
dissector
"github.com/g
inuerzh
/tls-dissector"
"git
lab.com/yawning
/obfs4.git/transports/base"
"git
lab.com/yawning
/obfs4.git/transports/obfs4"
dissector
"github.com/g
o-gost
/tls-dissector"
)
const
(
...
...
relay.go
View file @
937b27dd
...
...
@@ -84,7 +84,7 @@ func (c *relayConnector) ConnectContext(ctx context.Context, conn net.Conn, netw
atype
=
relay
.
AddrIPv4
}
req
.
Features
=
append
(
req
.
Features
,
&
relay
.
Target
AddrFeature
{
req
.
Features
=
append
(
req
.
Features
,
&
relay
.
AddrFeature
{
AType
:
atype
,
Host
:
host
,
Port
:
uint16
(
nport
),
...
...
@@ -155,8 +155,8 @@ func (h *relayHandler) Handle(conn net.Conn) {
feature
:=
f
.
(
*
relay
.
UserAuthFeature
)
user
,
pass
=
feature
.
Username
,
feature
.
Password
}
if
f
.
Type
()
==
relay
.
Feature
Target
Addr
{
feature
:=
f
.
(
*
relay
.
Target
AddrFeature
)
if
f
.
Type
()
==
relay
.
FeatureAddr
{
feature
:=
f
.
(
*
relay
.
AddrFeature
)
raddr
=
net
.
JoinHostPort
(
feature
.
Host
,
strconv
.
Itoa
(
int
(
feature
.
Port
)))
}
}
...
...
sni.go
View file @
937b27dd
...
...
@@ -18,7 +18,7 @@ import (
"sync"
"github.com/asaskevich/govalidator"
dissector
"github.com/g
inuerzh
/tls-dissector"
dissector
"github.com/g
o-gost
/tls-dissector"
"github.com/go-log/log"
)
...
...
socks.go
View file @
937b27dd
...
...
@@ -13,8 +13,8 @@ import (
"sync"
"time"
"github.com/g
inuerzh
/gosocks4"
"github.com/g
inuerzh
/gosocks5"
"github.com/g
o-gost
/gosocks4"
"github.com/g
o-gost
/gosocks5"
"github.com/go-log/log"
smux
"github.com/xtaci/smux"
)
...
...
ss.go
View file @
937b27dd
...
...
@@ -10,7 +10,7 @@ import (
"net/url"
"time"
"github.com/g
inuerzh
/gosocks5"
"github.com/g
o-gost
/gosocks5"
"github.com/go-log/log"
"github.com/shadowsocks/go-shadowsocks2/core"
ss
"github.com/shadowsocks/shadowsocks-go/shadowsocks"
...
...
@@ -580,7 +580,7 @@ func (c *shadowCipher) StreamConn(conn net.Conn) net.Conn {
}
func
(
c
*
shadowCipher
)
PacketConn
(
conn
net
.
PacketConn
)
net
.
PacketConn
{
return
ss
.
NewSecurePacketConn
(
conn
,
c
.
cipher
.
Copy
()
,
false
)
return
ss
.
NewSecurePacketConn
(
conn
,
c
.
cipher
.
Copy
())
}
func
initShadowCipher
(
info
*
url
.
Userinfo
)
(
cipher
core
.
Cipher
)
{
...
...
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