added VPN server ip to allowed IPs

pull/99/head
James Batt 4 years ago
parent 11f61ed37d
commit d667e1f49d

@ -68,6 +68,11 @@ func (cmd *servecmd) Run() {
// The server's IP within the VPN virtual network
vpnip := network.ServerVPNIP(conf.VPN.CIDR)
// Allow traffic to wg-access-server's peer endpoint.
// This is important because clients will send traffic
// to the embedded DNS proxy using the VPN IP
conf.VPN.AllowedIPs = append(conf.VPN.AllowedIPs, fmt.Sprintf("%s/32", vpnip.IP.String()))
// WireGuard Server
wg := wgembed.NewNoOpInterface()
if conf.WireGuard.Enabled {

Loading…
Cancel
Save