mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
looking good
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user