mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
dns: optimize code
This commit is contained in:
1 parent
e3c57ba369
commit
ab6a448d00
6 files changed
+43
-41
No files matched your search
+2
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user