This commit is contained in:
Russ Magee 2024-02-25 21:14:00 -08:00
parent ae67ee6201
commit 540cb8ff3a
1 changed files with 19 additions and 19 deletions

View File

@ -689,24 +689,24 @@ func sendSessionParams(conn io.Writer /* *xsnet.Conn*/, rec *xs.Session) (e erro
// TODO: reduce gocyclo // TODO: reduce gocyclo
func main() { //nolint: funlen, gocyclo func main() { //nolint: funlen, gocyclo
var ( var (
isInteractive bool isInteractive bool
vopt bool vopt bool
gopt bool // true: login via password, asking server to generate authToken gopt bool // true: login via password, asking server to generate authToken
dbg bool dbg bool
shellMode bool // true: act as shell, false: file copier shellMode bool // true: act as shell, false: file copier
cipherAlg string cipherAlg string
hmacAlg string hmacAlg string
kexAlg string kexAlg string
server string server string
port uint port uint
cmdStr string cmdStr string
tunSpecStr string // lport1:rport1[,lport2:rport2,...] tunSpecStr string // lport1:rport1[,lport2:rport2,...]
rekeySecs uint rekeySecs uint
remodRequested bool // true: when rekeying, switch to random cipher/hmac alg remodRequested bool // true: when rekeying, switch to random cipher/hmac alg
copySrc []byte copySrc []byte
copyDst string copyDst string
copyQuiet bool copyQuiet bool
copyLimitBPS uint copyLimitBPS uint
authCookie string authCookie string
chaffEnabled bool chaffEnabled bool
@ -969,7 +969,7 @@ func main() { //nolint: funlen, gocyclo
if kcpMode != "unused" { if kcpMode != "unused" {
proto = "kcp" proto = "kcp"
} }
remodExtArg := "" remodExtArg := ""
if remodRequested { if remodRequested {
remodExtArg = "OPT_REMOD" remodExtArg = "OPT_REMOD"