Skip to content

Commit d770b62

Browse files
authored
0.82.1: correct white-label URL (#355)
1 parent 69b4553 commit d770b62

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

lib/http-proxy/common.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,13 @@ common.generateZitiConfigObject = function(url, req, options) {
322322
selfHost = `${target.vhost}`;
323323
}
324324

325+
let whitelabel = JSON.parse( env('ZITI_BROWZER_WHITELABEL'));
326+
let svgurl = new URL(whitelabel.branding.browZerButtonIconSvgUrl);
327+
if (isEqual(browzer_load_balancer, svgurl.hostname)) {
328+
svgurl.hostname = selfHost;
329+
whitelabel.branding.browZerButtonIconSvgUrl = svgurl.toString();
330+
}
331+
325332
var ziti_config =
326333
{
327334
controller: {
@@ -358,7 +365,7 @@ common.generateZitiConfigObject = function(url, req, options) {
358365
host: browzer_load_balancer ? `${browzer_load_balancer}` : undefined,
359366
port: browzer_load_balancer ? `${browzer_load_balancer_port}` : undefined
360367
},
361-
whitelabel: JSON.parse( env('ZITI_BROWZER_WHITELABEL') ),
368+
whitelabel: whitelabel,
362369
},
363370
idp: {
364371
host: `${idp_issuer_url}`,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ziti-browzer-bootstrapper",
3-
"version": "0.82.0",
3+
"version": "0.82.1",
44
"compatibleControllerVersion": ">=0.27.9",
55
"description": "Ziti BrowZer Bootstrapper -- providing Ziti network access into Dark web server",
66
"main": "index.js",

0 commit comments

Comments
 (0)