mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
general: optimized codes
This commit is contained in:
1 parent
049c5b1458
commit
621e8ed018
5 files changed
+13
-28
No files matched your search
+2
-5
@@ -45,11 +45,8 @@ func NewSSR(s string, dialer proxy.Dialer) (*SSR, error) {
|
||||
}
|
||||
|
||||
addr := u.Host
|
||||
var method, pass string
|
||||
if u.User != nil {
|
||||
method = u.User.Username()
|
||||
pass, _ = u.User.Password()
|
||||
}
|
||||
method := u.User.Username()
|
||||
pass, _ := u.User.Password()
|
||||
|
||||
p := &SSR{
|
||||
dialer: dialer,
|
||||
|
||||
Reference in new issue
Block a user