Skip to content

Commit de3061e

Browse files
author
Sebastian Lagemann
committed
Merge branch 'main' of gitlab.com:gomsilo/punchmole
# Conflicts: # package.json
2 parents b41c883 + aaac98a commit de3061e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

PunchmoleClient.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ export function PunchmoleClient(apiKey, domain, targetUrl, endpointUrl, log = co
179179
log.info(new Date(), 'new websocket connection requested', request, targetUrl)
180180
const websocketConnectionUrl = targetUrl.replace(/^http/, 'ws') + request.url
181181
log.debug(new Date(), '-> opening websocket connection...', websocketConnectionUrl)
182-
websocketConnections[request.id] = new WebSocket(websocketConnectionUrl)
182+
websocketConnections[request.id] = new WebSocket(websocketConnectionUrl, {
183+
headers: request.headers
184+
})
183185
websocketConnections[request.id].on('message', (rawData) => {
184186
ws.send(JSON.stringify({
185187
type: 'websocket-message',

kubernetes.manifest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ spec:
134134
apiVersion: networking.k8s.io/v1
135135
kind: Ingress
136136
metadata:
137-
name: punchmole-server-third-domain
137+
name: punchmole-server-fourth-domain
138138
namespace: ${ENVIRONMENT}
139139
annotations:
140140
nginx.ingress.kubernetes.io/proxy-send-timeout: "360s"
@@ -159,7 +159,7 @@ spec:
159159
apiVersion: networking.k8s.io/v1
160160
kind: Ingress
161161
metadata:
162-
name: punchmole-server-third-domain
162+
name: punchmole-server-fifth-domain
163163
namespace: ${ENVIRONMENT}
164164
annotations:
165165
nginx.ingress.kubernetes.io/proxy-send-timeout: "360s"

0 commit comments

Comments
 (0)