Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions infra/conf/v4/socks.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ type SocksServerConfig struct {
Timeout uint32 `json:"timeout"`
UserLevel uint32 `json:"userLevel"`
PacketEncoding string `json:"packetEncoding"`
DeferLastReply bool `json:"deferLastReply,omitempty"`
}

func (v *SocksServerConfig) Build() (proto.Message, error) {
Expand Down Expand Up @@ -74,6 +75,8 @@ func (v *SocksServerConfig) Build() (proto.Message, error) {
config.PacketEncoding = packetaddr.PacketAddrType_None
}

config.DeferLastReply = v.DeferLastReply

return config, nil
}

Expand Down
Loading