update readme

This commit is contained in:
JustHumanz 2020-12-04 15:08:33 +07:00
parent 341e1de6d0
commit 8c930602c1
2 changed files with 22 additions and 1 deletions

View file

@ -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 {