update readme
This commit is contained in:
parent
341e1de6d0
commit
8c930602c1
2 changed files with 22 additions and 1 deletions
2
util.go
2
util.go
|
|
@ -13,7 +13,7 @@ import (
|
|||
//HttpProxy Public variable for Http proxy
|
||||
var HTTPProxy *url.URL
|
||||
|
||||
//SetProxy set http proxy
|
||||
//SetProxy set http proxy format `http://HOST:PORT`
|
||||
func SetProxy(Proxy string) error {
|
||||
match, _ := regexp.MatchString("http.+", Proxy)
|
||||
if !match {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue