Skip to content

Commit 5b5ba88

Browse files
committed
tunnel: use more subtle roaming escape hatch
Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent ceb3095 commit 5b5ba88

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tunnel/tools/libwg-go/api-android.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ type TunnelHandle struct {
4646
var tunnelHandles map[int32]TunnelHandle
4747

4848
func init() {
49-
device.RoamingDisabled = true
5049
tunnelHandles = make(map[int32]TunnelHandle)
5150
signals := make(chan os.Signal)
5251
signal.Notify(signals, unix.SIGUSR2)
@@ -91,6 +90,7 @@ func wgTurnOn(ifnameRef string, tunFd int32, settings string) int32 {
9190
logger.Error.Println(setError)
9291
return -1
9392
}
93+
device.DisableSomeRoamingForBrokenMobileSemantics()
9494

9595
var uapi net.Listener
9696

tunnel/tools/libwg-go/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ require (
66
golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9 // indirect
77
golang.org/x/net v0.0.0-20200602114024-627f9648deb9 // indirect
88
golang.org/x/sys v0.0.0-20200602225109-6fdc65e7d980
9-
golang.zx2c4.com/wireguard v0.0.20200321-0.20200622004228-b84f1d4db25e
9+
golang.zx2c4.com/wireguard v0.0.20200321-0.20201007081748-aece5215f6d5
1010
)

tunnel/tools/libwg-go/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
1616
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
1717
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
1818
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
19-
golang.zx2c4.com/wireguard v0.0.20200321-0.20200622004228-b84f1d4db25e h1:f8BS3yEMeIGx/zzJfihxDRedx6lT7EiJlfih4j6LY98=
20-
golang.zx2c4.com/wireguard v0.0.20200321-0.20200622004228-b84f1d4db25e/go.mod h1:GJvYs5O24/ASlwPiRklVnjMx2xQzrOic0DuU6GvYJL4=
19+
golang.zx2c4.com/wireguard v0.0.20200321-0.20201007081748-aece5215f6d5 h1:HKqwBkiskeelCeFow82mrYQs2OmCJ5JQv7MQA3Jd3Mk=
20+
golang.zx2c4.com/wireguard v0.0.20200321-0.20201007081748-aece5215f6d5/go.mod h1:GJvYs5O24/ASlwPiRklVnjMx2xQzrOic0DuU6GvYJL4=

0 commit comments

Comments
 (0)