mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-16 21:17:44 +00:00
Fix using wrong protocol when creating resource
This commit is contained in:
@@ -165,7 +165,7 @@ export async function updateProxyResources(
|
|||||||
.update(resources)
|
.update(resources)
|
||||||
.set({
|
.set({
|
||||||
name: resourceData.name || "Unnamed Resource",
|
name: resourceData.name || "Unnamed Resource",
|
||||||
protocol: protocol || "http",
|
protocol: protocol || "tcp",
|
||||||
http: http,
|
http: http,
|
||||||
proxyPort: http ? null : resourceData["proxy-port"],
|
proxyPort: http ? null : resourceData["proxy-port"],
|
||||||
fullDomain: http ? resourceData["full-domain"] : null,
|
fullDomain: http ? resourceData["full-domain"] : null,
|
||||||
@@ -457,7 +457,7 @@ export async function updateProxyResources(
|
|||||||
orgId,
|
orgId,
|
||||||
niceId: resourceNiceId,
|
niceId: resourceNiceId,
|
||||||
name: resourceData.name || "Unnamed Resource",
|
name: resourceData.name || "Unnamed Resource",
|
||||||
protocol: resourceData.protocol || "http",
|
protocol: protocol || "tcp",
|
||||||
http: http,
|
http: http,
|
||||||
proxyPort: http ? null : resourceData["proxy-port"],
|
proxyPort: http ? null : resourceData["proxy-port"],
|
||||||
fullDomain: http ? resourceData["full-domain"] : null,
|
fullDomain: http ? resourceData["full-domain"] : null,
|
||||||
|
|||||||
Reference in New Issue
Block a user