chore: cleaned up some weird code

This commit is contained in:
wwqgtxx
2024-11-26 10:04:41 +08:00
parent eb985b002e
commit f805a9f4c6
17 changed files with 99 additions and 126 deletions

View File

@@ -121,9 +121,11 @@ func closeSsh(s *Ssh) {
_ = s.client.Close()
}
// SupportWithDialer implements C.ProxyAdapter
func (s *Ssh) SupportDialerProxy() string {
return s.option.DialerProxy
// ProxyInfo implements C.ProxyAdapter
func (s *Ssh) ProxyInfo() C.ProxyInfo {
info := s.Base.ProxyInfo()
info.DialerProxy = s.option.DialerProxy
return info
}
func NewSsh(option SshOption) (*Ssh, error) {