mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-12-24 11:51:13 +08:00
refactor: optimize code (#702)
This commit is contained in:
@@ -38,7 +38,7 @@ func (svr *Server) Proxy(resp rpc.Daemon_ProxyServer) (err error) {
|
||||
var file string
|
||||
defer os.Remove(file)
|
||||
if !sshConf.IsEmpty() {
|
||||
file, err = ssh.SshJump(ctx, sshConf, []byte(req.KubeconfigBytes), "", false)
|
||||
file, err = ssh.SshJump(ctx, sshConf, []byte(req.KubeconfigBytes), false)
|
||||
} else {
|
||||
file, err = util.ConvertToTempKubeconfigFile([]byte(req.KubeconfigBytes), "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user