Skip to content

Commit

Permalink
fix: tradition shadowsocks server not apply additions
Browse files Browse the repository at this point in the history
  • Loading branch information
wwqgtxx committed Aug 23, 2024
1 parent 41efc5e commit 1e8e678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions listener/shadowsocks/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type Listener struct {

var _listener *Listener

func New(config LC.ShadowsocksServer, tunnel C.Tunnel) (*Listener, error) {
func New(config LC.ShadowsocksServer, tunnel C.Tunnel, additions ...inbound.Addition) (*Listener, error) {
pickCipher, err := core.PickCipher(config.Cipher, nil, config.Password)
if err != nil {
return nil, err
Expand Down Expand Up @@ -60,7 +60,7 @@ func New(config LC.ShadowsocksServer, tunnel C.Tunnel) (*Listener, error) {
continue
}
N.TCPKeepAlive(c)
go sl.HandleConn(c, tunnel)
go sl.HandleConn(c, tunnel, additions...)
}
}()
}
Expand Down

0 comments on commit 1e8e678

Please sign in to comment.