mirror of
https://github.com/ginuerzh/gost.git
synced 2026-10-19 16:14:35 +00:00
add comment, fix golint
This commit is contained in:
@@ -75,6 +75,7 @@ func ParseNode(s string) (node Node, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
// Can tests whether the given action and address is allowed by the whitelist and blacklist.
|
||||
func Can(action string, addr string, whitelist, blacklist *Permissions) bool {
|
||||
if !strings.Contains(addr, ":") {
|
||||
addr = addr + ":80"
|
||||
|
||||
Reference in New Issue
Block a user