mirror of
https://github.com/azukaar/Cosmos-Server.git
synced 2026-02-15 01:18:29 -06:00
[release] v0.17.4
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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')}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cosmos-server",
|
||||
"version": "0.17.3",
|
||||
"version": "0.17.4",
|
||||
"description": "",
|
||||
"main": "test-server.js",
|
||||
"bugs": {
|
||||
|
||||
@@ -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)
|
||||
|
||||
23
test.go
Normal file
23
test.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user