diff --git a/changelog.md b/changelog.md index a1446aa..32ddaf7 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,6 @@ +## Version 0.14.5 + - Fix an issue with the whitelisting form of URLs + ## Version 0.14.4 - Fix issue with the volumes going read only diff --git a/client/src/pages/config/routes/routeman.jsx b/client/src/pages/config/routes/routeman.jsx index 7218ff0..50cc6f6 100644 --- a/client/src/pages/config/routes/routeman.jsx +++ b/client/src/pages/config/routes/routeman.jsx @@ -73,7 +73,7 @@ const RouteManagement = ({ routeConfig, routeNames, config, TargetContainer, noC AuthEnabled: routeConfig.AuthEnabled, HideFromDashboard: routeConfig.HideFromDashboard, _SmartShield_Enabled: (routeConfig.SmartShield ? routeConfig.SmartShield.Enabled : false), - RestrictToConstellation: routeConfig.RestrictToConstellation, + RestrictToConstellation: routeConfig.RestrictToConstellation === true, OverwriteHostHeader: routeConfig.OverwriteHostHeader, WhitelistInboundIPs: routeConfig.WhitelistInboundIPs && routeConfig.WhitelistInboundIPs.join(', '), }} @@ -120,18 +120,18 @@ const RouteManagement = ({ routeConfig, routeNames, config, TargetContainer, noC }} validate={(values) => { let commaSepIps = values.WhitelistInboundIPs; - - if(commaSepIps && commaSepIps.length) { - values.WhitelistInboundIPs = commaSepIps.split(',').map((ip) => ip.trim()); - } else { - values.WhitelistInboundIPs = []; - } - + let fullValues = { ...routeConfig, ...values, } + if(commaSepIps && commaSepIps.length) { + fullValues.WhitelistInboundIPs = commaSepIps.split(',').map((ip) => ip.trim()); + } else { + fullValues.WhitelistInboundIPs = []; + } + // check name is unique if (newRoute && routeNames.includes(fullValues.Name)) { return { Name: 'Name must be unique' } diff --git a/readme.md b/readme.md index d8ec8a2..ea55731 100644 --- a/readme.md +++ b/readme.md @@ -5,7 +5,6 @@

Thanks to the sponsors:


null -CupofDalek null null null