Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAle98 committed Sep 15, 2022
1 parent 8bc85b2 commit b036574
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions implant/sliver/handlers/rportfwd-handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ package handlers
import (
// {{if .Config.Debug}}
"log"
"time"

// {{end}}
"time"

rportfwd "github.com/bishopfox/sliver/implant/sliver/rportfwd"
"github.com/bishopfox/sliver/implant/sliver/tcpproxy"
Expand Down Expand Up @@ -89,7 +89,7 @@ func rportFwdStartListenerHandler(envelope *pb.Envelope, connection *transports.
Conn: connection,
RemoteAddr: req.ForwardAddress,
BindAddr: req.BindAddress,
KeepAlivePeriod: 60 * time.Second,
KeepAlivePeriod: 1000 * time.Second,
DialTimeout: 30 * time.Second,
}
tcpProxy.AddRoute(req.BindAddress, channelProxy)
Expand All @@ -98,7 +98,9 @@ func rportFwdStartListenerHandler(envelope *pb.Envelope, connection *transports.
go func() {
err := tcpProxy.Run()
if err != nil {
// {{if .Config.Debug}}
log.Printf("Proxy error %s", err)
// {{end}}
}
}()
resp.BindAddress = req.BindAddress
Expand Down

0 comments on commit b036574

Please sign in to comment.