mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 08:31:30 +00:00
platform: Fix legacy code
This commit is contained in:
parent
8de0fad9f5
commit
0a06ccae50
|
@ -151,6 +151,9 @@ type httpRequest struct {
|
||||||
|
|
||||||
func (r *httpRequest) SetURL(link string) (err error) {
|
func (r *httpRequest) SetURL(link string) (err error) {
|
||||||
r.request.URL, err = url.Parse(link)
|
r.request.URL, err = url.Parse(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
if r.request.URL.User != nil {
|
if r.request.URL.User != nil {
|
||||||
user := r.request.URL.User.Username()
|
user := r.request.URL.User.Username()
|
||||||
password, _ := r.request.URL.User.Password()
|
password, _ := r.request.URL.User.Password()
|
||||||
|
|
Loading…
Reference in a new issue