cmd/tailscale: don't set up VPN for invalid configurations

Fixes tailscale/tailscale#507

Signed-off-by: Elias Naur <mail@eliasnaur.com>
pull/3/head
Elias Naur 4 years ago
parent 2119f8aa9d
commit 19ed532519

@ -147,6 +147,9 @@ func (b *backend) updateTUN(service jni.Object, cfg *router.Config) error {
if reflect.DeepEqual(cfg, b.lastCfg) {
return nil
}
if len(cfg.LocalAddrs) == 0 {
return nil
}
err := jni.Do(b.jvm, func(env jni.Env) error {
cls := jni.GetObjectClass(env, service)
// Construct a VPNService.Builder. IPNService.newBuilder calls

Loading…
Cancel
Save