mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-08 11:44:13 +08: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…
x
Reference in New Issue
Block a user