diff options
| author | Odd Stranne <odd@mullvad.net> | 2022-03-24 10:55:57 +0100 |
|---|---|---|
| committer | Odd Stranne <odd@mullvad.net> | 2022-03-24 10:55:57 +0100 |
| commit | e4c2f269ef6fb6c39001f7fb0f963c713ea8dc5b (patch) | |
| tree | f715103d5cb043c7d34bf632012c45b8ad6059d3 /gui/src | |
| parent | e53c4552cf57b9263f88cdce1ff55419efa9daa4 (diff) | |
| parent | 097d28ecf89a3acdaa854c469f0f79438b0aa67f (diff) | |
| download | mullvadvpn-e4c2f269ef6fb6c39001f7fb0f963c713ea8dc5b.tar.xz mullvadvpn-e4c2f269ef6fb6c39001f7fb0f963c713ea8dc5b.zip | |
Merge branch 'restructure-wg-obfuscation'
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/main/daemon-rpc.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gui/src/main/daemon-rpc.ts b/gui/src/main/daemon-rpc.ts index 2497bceaeb..6e3fde5ea0 100644 --- a/gui/src/main/daemon-rpc.ts +++ b/gui/src/main/daemon-rpc.ts @@ -1206,7 +1206,7 @@ function convertFromWireguardConstraints( entryLocation: 'any', }; - const port = constraints.getPort()?.getPort(); + const port = constraints.getPort(); if (port) { result.port = { only: port }; } @@ -1332,10 +1332,7 @@ function convertToWireguardConstraints( const port = liftConstraint(constraint.port); if (port) { - const portConstraints = new grpcTypes.TransportPort(); - portConstraints.setPort(port); - portConstraints.setProtocol(grpcTypes.TransportProtocol.UDP); - wireguardConstraints.setPort(portConstraints); + wireguardConstraints.setPort(port); } const ipVersion = liftConstraint(constraint.ipVersion); |
