Skip to content

Commit a12a620

Browse files
Fix using wrong protocol when creating resource
1 parent 0c3b2bc commit a12a620

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/lib/blueprints/proxyResources.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export async function updateProxyResources(
165165
.update(resources)
166166
.set({
167167
name: resourceData.name || "Unnamed Resource",
168-
protocol: protocol || "http",
168+
protocol: protocol || "tcp",
169169
http: http,
170170
proxyPort: http ? null : resourceData["proxy-port"],
171171
fullDomain: http ? resourceData["full-domain"] : null,
@@ -457,7 +457,7 @@ export async function updateProxyResources(
457457
orgId,
458458
niceId: resourceNiceId,
459459
name: resourceData.name || "Unnamed Resource",
460-
protocol: resourceData.protocol || "http",
460+
protocol: protocol || "tcp",
461461
http: http,
462462
proxyPort: http ? null : resourceData["proxy-port"],
463463
fullDomain: http ? resourceData["full-domain"] : null,

0 commit comments

Comments
 (0)