Skip to content

Commit b416b81

Browse files
committed
ipn/proxy: m code comment
1 parent 4cffe15 commit b416b81

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

intra/ipn/proxy.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ func (pxr *proxifier) addRpnProxy(acc RpnAcc, cc string) (Proxy, error) {
104104

105105
log.I("proxy: rpn: add: %s[%s]", typ, cc)
106106

107-
// cc may be typcity;cc (ref struct RpnServer.Key)
107+
// cc may be "typcity;cc" (see var rpnid below)
108+
// but we need cc to be "city;cc" (ref struct RpnServer.Key)
108109
cc, _ = strings.CutPrefix(cc, typ)
109110

110111
txt, err := acc.Conf(cc)

intra/ipn/rpn/yegor.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,6 @@ func (a *WsClient) Conf(cc string) (string, error) {
935935
for _, rc := range cfg.Configs {
936936
// TODO: strings.HasSuffix(rc.Cc, cc) replaced with ==?
937937
if (chooseAny || strings.HasSuffix(rc.CC, cc)) && (!hasCity || rc.City == city) {
938-
939938
if chooseAny {
940939
if _, ok := visited[rc.CC]; ok {
941940
continue

0 commit comments

Comments
 (0)