[release] v0.17.4

This commit is contained in:
Yann Stepienik
2024-12-18 14:42:03 +00:00
parent 75e591a899
commit f461c3db0d
6 changed files with 47 additions and 14 deletions

View File

@@ -1,3 +1,7 @@
## Version 0.17.4
- Hide update button in container
- Fix issue with allowHTTPLocal and the TCP Proxy
## Version 0.17.3
- fix race condition with the monitoring

View File

@@ -43,6 +43,7 @@ import { FilePickerButton } from '../../../components/filePicker';
const ConfigManagement = () => {
const { t } = useTranslation();
const [config, setConfig] = React.useState(null);
const [status, setStatus] = React.useState(null);
const [openModal, setOpenModal] = React.useState(false);
const [openResartModal, setOpenRestartModal] = React.useState(false);
const [uploadingBackground, setUploadingBackground] = React.useState(false);
@@ -54,6 +55,10 @@ const ConfigManagement = () => {
API.config.get().then((res) => {
setConfig(res.data);
});
API.getStatus().then((res) => {
setStatus(res.data);
});
}
function getRouteDomain(domain) {
@@ -289,19 +294,20 @@ const ConfigManagement = () => {
<Alert severity="info">{t('mgmt.config.general.configFileInfo')}</Alert>
</Grid>
<CosmosCheckbox
label={t('mgmt.config.general.autoupdates')}
name="AutoUpdate"
formik={formik}
helperText={t('mgmt.config.general.autoupdates')}
/>
{status && !status.containerized && <>
<CosmosCheckbox
label={t('mgmt.config.general.autoupdates')}
name="AutoUpdate"
formik={formik}
helperText={t('mgmt.config.general.autoupdates')}
/>
<CosmosCheckbox
label={t('mgmt.config.general.betaupdate')}
name="BetaUpdates"
formik={formik}
helperText={t('mgmt.config.general.betaupdate')}
/>
<CosmosCheckbox
label={t('mgmt.config.general.betaupdate')}
name="BetaUpdates"
formik={formik}
helperText={t('mgmt.config.general.betaupdate')}
/></>}
<CosmosCheckbox
label={t('mgmt.config.general.forceMfaCheckbox.forceMfaLabel')}

View File

@@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.17.3",
"version": "0.17.4",
"description": "",
"main": "test-server.js",
"bugs": {

View File

@@ -385,7 +385,7 @@ func InitInternalSocketProxy() {
portpair := PortsPair{sourceHostname, destination, isHTTPProxy, route}
if isHTTPProxy && allowHTTPLocal && utils.IsLocalIP(route.Host) {
portpair.To = HTTPPort
portpair.To = "localhost:" + HTTPPort
}
expectedPorts = append(expectedPorts, portpair)

BIN
test Normal file

Binary file not shown.

23
test.go Normal file
View File

@@ -0,0 +1,23 @@
package main
import (
"fmt"
"strings"
)
func main() {
target := ":80";
destinationArr := strings.Split(target, "://")
listenProtocol := "tcp"
if len(destinationArr) > 1 {
target = destinationArr[1]
listenProtocol = destinationArr[0]
} else {
target = destinationArr[0]
}
fmt.Println(listenProtocol)
fmt.Println(target)
}