Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"time"

"github.com/cyfdecyf/bufio"
"net/url"
)

const (
Expand Down Expand Up @@ -198,7 +199,11 @@ func (pp proxyParser) ProxyHttp(val string) {
if len(arr) == 1 {
server = arr[0]
} else if len(arr) == 2 {
userPasswd = arr[0]
var err error
if userPasswd, err = url.QueryUnescape(arr[0]); err != nil {
fmt.Println("urldecode failed, please check your username and password")
userPasswd = arr[0]
}
server = arr[1]
} else {
Fatal("http parent proxy contains more than one @:", val)
Expand Down