fix: Stopping service without proxy
This commit is contained in:
parent
8fc3760eef
commit
bdf123bf7b
@ -33,8 +33,12 @@ export const post: RequestHandler = async (event) => {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
await stopTcpHttpProxy(destinationDocker, publicPort);
|
try {
|
||||||
await configureSimpleServiceProxyOff({ domain });
|
await stopTcpHttpProxy(destinationDocker, publicPort);
|
||||||
|
await configureSimpleServiceProxyOff({ domain });
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -27,7 +27,11 @@ export const post: RequestHandler = async (event) => {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
await configureSimpleServiceProxyOff({ domain });
|
try {
|
||||||
|
await configureSimpleServiceProxyOff({ domain });
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -37,7 +37,11 @@ export const post: RequestHandler = async (event) => {
|
|||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
await configureSimpleServiceProxyOff({ domain });
|
try {
|
||||||
|
await configureSimpleServiceProxyOff({ domain });
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -27,7 +27,11 @@ export const post: RequestHandler = async (event) => {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
await configureSimpleServiceProxyOff({ domain });
|
try {
|
||||||
|
await configureSimpleServiceProxyOff({ domain });
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -27,7 +27,11 @@ export const post: RequestHandler = async (event) => {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
await configureSimpleServiceProxyOff({ domain });
|
try {
|
||||||
|
await configureSimpleServiceProxyOff({ domain });
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
status: 200
|
status: 200
|
||||||
|
@ -30,7 +30,11 @@ export const post: RequestHandler = async (event) => {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
await configureSimpleServiceProxyOff({ domain });
|
try {
|
||||||
|
await configureSimpleServiceProxyOff({ domain });
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user