looking good

This commit is contained in:
Matt Hill
2026-02-14 16:37:04 -07:00
parent 3a63f3b840
commit 2f19188dae
22 changed files with 4009 additions and 6738 deletions

View File

@@ -118,7 +118,7 @@ import { MappedDevice, PortForwardsData } from './utils'
@if (show80) {
<label tuiLabel>
<input tuiCheckbox type="checkbox" formControlName="also80" />
Also forward port 80 to port 5443? This is needed for HTTP to HTTPS
Also forward port 80 to port 443? This is needed for HTTP to HTTPS
redirects (recommended)
</label>
}
@@ -173,7 +173,7 @@ export class PortForwardsAdd {
protected checkShow80() {
const { externalport, internalport } = this.form.getRawValue()
this.show80 = externalport === 443 && internalport === 5443
this.show80 = externalport === 443 && internalport === 443
}
protected async onSave() {
@@ -194,10 +194,10 @@ export class PortForwardsAdd {
target: `${device!.ip}:${internalport}`,
})
if (externalport === 443 && internalport === 5443 && also80) {
if (externalport === 443 && internalport === 443 && also80) {
await this.api.addForward({
source: `${externalip}:80`,
target: `${device!.ip}:5443`,
target: `${device!.ip}:443`,
})
}
} catch (e: any) {

View File

@@ -39,7 +39,7 @@ export const mockTunnelData: TunnelData = {
},
},
portForwards: {
'69.1.1.42:443': '10.59.0.2:5443',
'69.1.1.42:443': '10.59.0.2:443',
'69.1.1.42:3000': '10.59.0.2:3000',
},
gateways: {