Skip to content

Commit

Permalink
[release] v0.17.4
Browse files Browse the repository at this point in the history
  • Loading branch information
azukaar committed Dec 18, 2024
1 parent 75e591a commit f461c3d
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 14 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
30 changes: 18 additions & 12 deletions client/src/pages/config/users/configman.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -54,6 +55,10 @@ const ConfigManagement = () => {
API.config.get().then((res) => {
setConfig(res.data);
});

API.getStatus().then((res) => {
setStatus(res.data);
});
}

function getRouteDomain(domain) {
Expand Down Expand Up @@ -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')}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.17.3",
"version": "0.17.4",
"description": "",
"main": "test-server.js",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion src/proxy/SocketProxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Binary file added test
Binary file not shown.
23 changes: 23 additions & 0 deletions test.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit f461c3d

Please sign in to comment.