update func calls
This commit is contained in:
parent
ece79946b3
commit
8121e20cbd
2
gost.go
2
gost.go
@ -20,7 +20,7 @@ import (
|
||||
)
|
||||
|
||||
// Version is the gost version.
|
||||
const Version = "2.10.1"
|
||||
const Version = "2.10.1-dev"
|
||||
|
||||
// Debug is a flag that enables the debug log.
|
||||
var Debug bool
|
||||
|
@ -53,7 +53,8 @@ func (h *tcpRedirectHandler) Handle(c net.Conn) {
|
||||
|
||||
log.Logf("[red-tcp] %s -> %s", srcAddr, dstAddr)
|
||||
|
||||
cc, err := h.options.Chain.Dial(dstAddr.String(),
|
||||
cc, err := h.options.Chain.DialContext(context.Background(),
|
||||
"tcp", dstAddr.String(),
|
||||
RetryChainOption(h.options.Retries),
|
||||
TimeoutChainOption(h.options.Timeout),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user