Skip to content

Commit

Permalink
fix(proxy): Fix port proxy has undefined problem.
Browse files Browse the repository at this point in the history
Close #73
  • Loading branch information
syfxlin committed Dec 28, 2024
1 parent bfaf646 commit bade956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/app/ctx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,9 @@ export class PackContext<Config extends AppConfig = AppConfig> {

// ports
for (const port of config.ports ?? []) {
const proto = port.proto;
const hport = port.hport;
const cport = port.cport;
const proto = port.proto === "udp" ? "udp" : "tcp";
if (proto === "tcp") {
labels[`traefik.${proto}.routers.${config.name}-${this.id}-${proto}-${cport}.rule`] = "HostSNI(`*`)";
}
Expand Down

0 comments on commit bade956

Please sign in to comment.