Skip to content

Commit 0fdd34c

Browse files
committed
rpn: m code comments
1 parent f7d2251 commit 0fdd34c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

intra/ipn/proxy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ func (pxr *proxifier) addRpnProxy(acc RpnAcc, cc string) (Proxy, error) {
101101
cc = noCountryForOldMen
102102
}
103103

104+
// cc may be typcc;city (ref struct RpnServer.Key)
104105
cc, _ = strings.CutPrefix(cc, typ)
105106

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

intra/ipn/rpn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ func (r *rpnp) get(cc string) (x.Proxy, error) {
458458
r.mu.RUnlock()
459459

460460
if rpnid+cc == idstr(main) {
461-
// FIXME: r.Proxy needs to be got after r.mu.RLock()
461+
// return r as-is; r.p is always got after r.mu.RLock()
462462
return r, nil
463463
}
464464
if !gotCC {

intra/ipn/rpn/cfg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ var (
5353

5454
type RpnAcc interface {
5555
x.RpnAcc
56-
ProviderID() string // x.RpnWg, x.RpnPro, x.RpnAmz
56+
ProviderID() string // x.RpnWg, x.RpnPro, x.RpnAmz, x.RpnWin
5757
MultiCountry() bool
5858
Conf(key string) (string, error)
5959
}

0 commit comments

Comments
 (0)