Fix: port forwarding VPN interface specification

This commit is contained in:
Quentin McGaw (desktop)
2021-08-21 18:16:44 +00:00
parent 8d258feff7
commit ff56857fc8
2 changed files with 2 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ func (l *Loop) startPortForwarding(ctx context.Context, data tunnelUpData) (err
// only used for PIA for now
gateway, err := l.routing.VPNLocalGatewayIP(data.vpnIntf)
if err != nil {
return fmt.Errorf("%w: %s", errObtainVPNLocalGateway, err)
return fmt.Errorf("%w: for interface %s: %s", errObtainVPNLocalGateway, data.vpnIntf, err)
}
l.logger.Info("VPN gateway IP address: " + gateway.String())