~fkooman/vpn-user-portal

b033e6157bbf296d35250d46a06e85a75562f75e — François Kooman 3 months ago e903662
Revert "expose `TCPEndpoint` option as a comment in WireGuard config"

This reverts commit d24d9696ae57a0ae65d8562f8175d333da33d71c.
2 files changed, 0 insertions(+), 18 deletions(-)

M src/Cfg/WireGuardConfig.php
M src/WireGuard/ClientConfig.php
M src/Cfg/WireGuardConfig.php => src/Cfg/WireGuardConfig.php +0 -10
@@ 31,14 31,4 @@ class WireGuardConfig
    {
        return $this->requireInt('listenPort', 51820);
    }

    public function tcpProxy(): bool
    {
        return $this->requireBool('tcpProxy', false);
    }

    public function tcpListenPort(): int
    {
        return $this->requireInt('tcpListenPort', $this->listenPort());
    }
}

M src/WireGuard/ClientConfig.php => src/WireGuard/ClientConfig.php +0 -8
@@ 110,14 110,6 @@ class ClientConfig implements ClientConfigInterface
        }
        $output[] = 'Endpoint = ' . $this->profileConfig->hostName($this->nodeNumber) . ':' . (string) $this->wgConfig->listenPort();

        // TCP Proxy
        if ($this->wgConfig->tcpProxy()) {
            // TCPEndpoint is a proprietary eduVPN/Let's Connect! configuration
            // field that instructs the VPN client it is possible to connect
            // over TCP to the server
            $output[] = sprintf('#TCPEndpoint = %s:%d', $this->profileConfig->hostName($this->nodeNumber), $this->wgConfig->tcpListenPort());
        }

        return implode("\n", $output);
    }