Skip to content

Commit 27cc0a0

Browse files
committed
rpn/agw: force allow all ips
1 parent 81b7c26 commit 27cc0a0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

intra/ipn/warp/agw.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ var (
5050
const (
5151
prod = true
5252

53+
agwAlwaysAllowAllIPs = true
54+
5355
agwDevUrl = "http://gw.dev.amzsvc.com/v1/config"
5456
agwProdUrl = "http://gw.amnezia.org/v1/config"
5557
agwDevRsaPublicKey = `-----BEGIN PUBLIC KEY-----
@@ -169,7 +171,7 @@ type AmzWgConfig struct {
169171
}
170172

171173
func (c *AmzWgConfig) genWgConf() {
172-
if len(c.AllowedIPs) <= 0 {
174+
if len(c.AllowedIPs) <= 0 || agwAlwaysAllowAllIPs {
173175
c.AllowedIPs = []string{gw4, gw6}
174176
}
175177
server := net.JoinHostPort(c.HostName, fmt.Sprintf("%d", c.Port))

0 commit comments

Comments
 (0)