dns: optimize code

This commit is contained in:
nadoo committed 2020-05-06 20:10:18 +08:00
1 parent e3c57ba369
commit ab6a448d00
6 files changed
+43 -41

No files matched your search

+2 -1
View File
@@ -13,6 +13,7 @@ import (
"github.com/nadoo/glider/proxy"
)
// SSH is a base ssh struct.
type SSH struct {
dialer proxy.Dialer
proxy proxy.Proxy
@@ -24,7 +25,7 @@ func init() {
proxy.RegisterDialer("ssh", NewSSHDialer)
}
// NewSS returns a ssh proxy.
// NewSSH returns a ssh proxy.
func NewSSH(s string, d proxy.Dialer, p proxy.Proxy) (*SSH, error) {
u, err := url.Parse(s)
if err != nil {