Skip to content

Commit

Permalink
fix legacy ini proxy conversion panic (#3667)
Browse files Browse the repository at this point in the history
  • Loading branch information
fatedier authored Oct 11, 2023
1 parent b9c24e9 commit 01a0d55
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/config/legacy/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ func Convert_ProxyConf_To_v1(conf ProxyConf) v1.ProxyConfigurer {
c := &v1.XTCPProxyConfig{ProxyBaseConfig: *outBase}
c.Secretkey = v.Sk
c.AllowUsers = v.AllowUsers
out = c
}
return out
}
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/framework/consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ log.level = "trace"
DefaultClientConfig = `
serverAddr = "127.0.0.1"
serverPort = {{ .%s }}
loginFailExit = false
log.level = "trace"
`

Expand All @@ -38,6 +39,7 @@ log.level = "trace"
[common]
server_addr = 127.0.0.1
server_port = {{ .%s }}
login_fail_exit = false
log_level = trace
`
)
Expand Down
1 change: 1 addition & 0 deletions test/e2e/framework/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func (f *Framework) RunProcesses(serverTemplates []string, clientTemplates []str
currentServerProcesses = append(currentServerProcesses, p)
err = p.Start()
ExpectNoError(err)
time.Sleep(500 * time.Millisecond)
}
time.Sleep(1 * time.Second)

Expand Down

0 comments on commit 01a0d55

Please sign in to comment.