Skip to content

Commit 75e591a

Browse files
committed
[release] v0.17.3
1 parent 5f38308 commit 75e591a

File tree

5 files changed

+45
-3
lines changed

5 files changed

+45
-3
lines changed

build-dev.sh

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/bin/bash
2+
3+
echo " ---- Build Cosmos ----"
4+
5+
rm -rf build
6+
7+
cp src/update.go src/launcher/update.go
8+
9+
go build -o build/cosmos src/*.go
10+
if [ $? -ne 0 ]; then
11+
exit 1
12+
fi
13+
go build -o build/cosmos-launcher ./src/launcher/launcher.go ./src/launcher/update.go
14+
if [ $? -ne 0 ]; then
15+
exit 1
16+
fi
17+
18+
echo " ---- Build complete, copy assets ----"
19+
20+
cp start.sh build/start.sh
21+
chmod +x build/start.sh
22+
chmod +x build/cosmos
23+
chmod +x build/cosmos-launcher
24+
25+
cp -r static build/
26+
cp -r GeoLite2-Country.mmdb build/
27+
cp nebula-arm-cert nebula-cert nebula-arm nebula build/
28+
cp -r Logo.png build/
29+
mkdir build/images
30+
cp client/src/assets/images/icons/cosmos_gray.png build/cosmos_gray.png
31+
cp client/src/assets/images/icons/cosmos_gray.png cosmos_gray.png
32+
echo '{' > build/meta.json
33+
cat package.json | grep -E '"version"' >> build/meta.json
34+
echo ' "buildDate": "'`date`'",' >> build/meta.json
35+
echo ' "built from": "'`hostname`'"' >> build/meta.json
36+
echo '}' >> build/meta.json
37+
38+
echo " ---- copy complete ----"

changelog.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## Version 0.17.3
2+
- fix race condition with the monitoring
3+
14
## Version 0.17.2
25
- Fix RClone false error
36

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cosmos-server",
3-
"version": "0.17.2",
3+
"version": "0.17.3",
44
"description": "",
55
"main": "test-server.js",
66
"bugs": {
@@ -90,7 +90,7 @@
9090
"client": "vite",
9191
"client-build": "vite build --base=/cosmos-ui/",
9292
"start": "build/cosmos-launcher && env COSMOS_CONFIG_FOLDER=./zz_test_config/ CONFIG_FILE=./config_dev.json EZ=UTC ACME_STAGING=true build/cosmos",
93-
"build": "sh build.sh",
93+
"build": "sh build-dev.sh",
9494
"dev": "npm run build && npm run start",
9595
"dockerdevbuild": "docker build -f dockerfile.local --tag cosmos-dev .",
9696
"dockerdevrun": "docker stop cosmos-dev; docker rm cosmos-dev; docker run --cap-add NET_ADMIN -d -p 7200:443 -p 80:80 -p 53:53 -p 443:443 -p 4242:4242/udp -e DOCKER_HOST=tcp://host.docker.internal:2375 -e COSMOS_MONGODB=$MONGODB -e COSMOS_LOG_LEVEL=DEBUG -v /:/mnt/host --restart=unless-stopped -h cosmos-dev --name cosmos-dev cosmos-dev",

src/proxy/SocketProxy.go

+1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ func startProxy(listenAddr string, target string, proxyInfo *ProxyInfo, isHTTPPr
134134
utils.Log("[SocketProxy] Proxy listening on "+listenAddr+", forwarding to "+listenProtocol+"://"+target)
135135

136136
if listenProtocol == "tcp" {
137+
utils.Debug("[SocketProxy] Starting TCP proxy on " + listenAddr + " -> " + target)
137138
handleTCPProxy(listener, target, proxyInfo, isHTTPProxy, route, listenAddr)
138139
} else {
139140
handleUDPProxy(packetConn, target, proxyInfo, route, listenAddr)

src/storage/rclone.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ type RcloneStatsObj struct {
740740
func RCloneStats() (RcloneStatsObj, error) {
741741
utils.Debug("[RemoteStorage] Getting rclone stats")
742742

743-
if !utils.FBL.LValid {
743+
if utils.FBL == nil || !utils.FBL.LValid {
744744
return RcloneStatsObj{0, 0}, nil
745745
}
746746

0 commit comments

Comments
 (0)