Skip to content
Snippets Groups Projects
Select Git revision
0 results

openvpn.go

Blame
    • jkito's avatar
      ddf7f4d0
      Remove re-creation of 'gateways' var in 'startOpenvpn' · ddf7f4d0
      jkito authored and jkito's avatar jkito committed
      this fixes a bug where StartFirewall is called with an empty
      'gateways' slice leading to blocking outgoing connections to
      the openvpn gateway
      
      in startOpenvpn func's global scope there's a 'gateways' var
      which is passed to FirewallStart and the gateways are  added
      to the firewall's allow list of IPs, this was re-declared in
      the code branch for non-private bridge which is out of scope
      where FirewallStart is called, leading to an empty 'gateways'
      slice being passed to it
      ddf7f4d0
      History
      Remove re-creation of 'gateways' var in 'startOpenvpn'
      jkito authored and jkito's avatar jkito committed
      this fixes a bug where StartFirewall is called with an empty
      'gateways' slice leading to blocking outgoing connections to
      the openvpn gateway
      
      in startOpenvpn func's global scope there's a 'gateways' var
      which is passed to FirewallStart and the gateways are  added
      to the firewall's allow list of IPs, this was re-declared in
      the code branch for non-private bridge which is out of scope
      where FirewallStart is called, leading to an empty 'gateways'
      slice being passed to it