mirror of
https://github.com/azukaar/Cosmos-Server.git
synced 2026-10-12 02:11:26 +00:00
[release] v0.21.4
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
## Version 0.21.4
|
||||
- Remove tunnel check when Constellation is off
|
||||
|
||||
## Version 0.21.3
|
||||
- fix Bug with table width
|
||||
- Add move to top/bottom
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cosmos-server",
|
||||
"version": "0.21.3",
|
||||
"version": "0.21.4",
|
||||
"description": "",
|
||||
"main": "test-server.js",
|
||||
"bugs": {
|
||||
|
||||
@@ -268,6 +268,7 @@ func ResetNebula() error {
|
||||
stop()
|
||||
utils.Log("Resetting nebula...")
|
||||
os.RemoveAll(utils.CONFIGFOLDER + "nebula.yml")
|
||||
os.RemoveAll(utils.CONFIGFOLDER + "nebula-temp.yml")
|
||||
os.RemoveAll(utils.CONFIGFOLDER + "ca.crt")
|
||||
os.RemoveAll(utils.CONFIGFOLDER + "ca.key")
|
||||
os.RemoveAll(utils.CONFIGFOLDER + "cosmos.crt")
|
||||
@@ -1060,6 +1061,7 @@ func pingLighthouse(lh utils.ConstellationDevice, retries int) {
|
||||
func GetCurrentDeviceName() (string, error) {
|
||||
config := utils.GetMainConfig()
|
||||
name := config.ConstellationConfig.ThisDeviceName
|
||||
|
||||
if name == "" {
|
||||
nebulaFile, err := ioutil.ReadFile(utils.CONFIGFOLDER + "nebula.yml")
|
||||
if err != nil {
|
||||
|
||||
@@ -316,6 +316,10 @@ func UpdateLocalTunnelCache() {
|
||||
}
|
||||
|
||||
func GetLocalTunnelCache() []utils.ConstellationTunnel {
|
||||
if !utils.GetMainConfig().ConstellationConfig.Enabled {
|
||||
return []utils.ConstellationTunnel{}
|
||||
}
|
||||
|
||||
isLB, err := GetCurrentDeviceIsLoadbalancer()
|
||||
if err != nil {
|
||||
utils.Debug("[constellation] Failed to get current device load balancer status for tunnel cache retrieval " + err.Error())
|
||||
|
||||
Reference in New Issue
Block a user