Small refactor for config parsing.

This commit is contained in:
Chen Yufei
2013-10-06 23:08:27 +08:00
parent 1bcf63b94c
commit 8639ef67a0
4 changed files with 21 additions and 18 deletions

View File

@@ -58,6 +58,10 @@ type ParentProxy struct {
var parentProxy []ParentProxy
func hasParentProxy() bool {
return len(parentProxy) != 0
}
func addParentProxy(pc proxyConnector) {
parentProxy = append(parentProxy, ParentProxy{pc, 0})
}