Skip to content

Commit d3a7c26

Browse files
committed
🎉 0.3.1
1 parent 1ae2c45 commit d3a7c26

File tree

9 files changed

+10
-49
lines changed

9 files changed

+10
-49
lines changed

.github/workflows/cli.yaml

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
env:
1515
APP_NAME: "WebSocketReflectorX"
16-
APP_VERSION: "0.3.0"
16+
APP_VERSION: "0.3.1"
1717

1818
#-------------------------------------------------------------------------------
1919
# Workflow jobs
@@ -79,43 +79,6 @@ jobs:
7979
wsrx-cli-${{env.APP_VERSION}}-linux64-gnu.tar.gz
8080
wsrx-cli-${{env.APP_VERSION}}-linux64-musl.tar.gz
8181
82-
## macOS build ###############################################################
83-
build-mac:
84-
name: "macOS CI build"
85-
runs-on: macos-12
86-
steps:
87-
# Checkout repository (and submodules)
88-
- name: Checkout repository (and submodules)
89-
uses: actions/checkout@v4
90-
with:
91-
submodules: recursive
92-
93-
# Setup Rust
94-
- uses: actions-rs/toolchain@v1
95-
with:
96-
toolchain: stable
97-
98-
# Build application
99-
- name: Build application
100-
run: cargo build --release --features=binary
101-
102-
# Deploy application
103-
- name: Compress Binaries
104-
run: zip -r -y -X wsrx-cli-${{env.APP_VERSION}}-macOS-x86_64.zip target/release/wsrx
105-
106-
# Upload application ZIP
107-
- name: Upload application ZIP
108-
uses: actions/upload-artifact@v4
109-
with:
110-
name: wsrx-cli-${{env.APP_VERSION}}-macOS-x86_64.zip
111-
path: wsrx-cli-${{env.APP_VERSION}}-macOS-x86_64.zip
112-
113-
- name: Release
114-
uses: softprops/action-gh-release@v2
115-
if: startsWith(github.ref, 'refs/tags/')
116-
with:
117-
files: wsrx-cli-${{env.APP_VERSION}}-macOS-x86_64.zip
118-
11982
## macOS build ###############################################################
12083
build-mac-arm:
12184
name: "macOS ARM CI build"

.github/workflows/commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818

1919
env:
2020
APP_NAME: "WebSocketReflectorX"
21-
APP_VERSION: "0.3.0"
21+
APP_VERSION: "0.3.1"
2222
QT_VERSION: "6.8.1"
2323

2424
#-------------------------------------------------------------------------------

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
env:
1515
APP_NAME: "WebSocketReflectorX"
16-
APP_VERSION: "0.3.0"
16+
APP_VERSION: "0.3.1"
1717
QT_VERSION: "6.8.1"
1818

1919
#-------------------------------------------------------------------------------

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.20)
22

33
set(VERSION_MAJOR 0)
44
set(VERSION_MINOR 3)
5-
set(VERSION_PATCH 0)
5+
set(VERSION_PATCH 1)
66

77
execute_process(
88
COMMAND git describe --always --dirty

deploy_linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
export APP_NAME="WebSocketReflectorX"
4-
export APP_VERSION=0.3.0
4+
export APP_VERSION=0.3.1
55
export GIT_VERSION=$(git rev-parse --short HEAD)
66

77
echo "> $APP_NAME packager (Linux x86_64) [v$APP_VERSION]"

deploy_macos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
export APP_NAME="WebSocketReflectorX"
4-
export APP_VERSION=0.3.0
4+
export APP_VERSION=0.3.1
55
export GIT_VERSION=$(git rev-parse --short HEAD)
66

77
arch=x86_64

deploy_windows.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
export APP_NAME="WebSocketReflectorX"
4-
export APP_VERSION=0.3.0
4+
export APP_VERSION=0.3.1
55
export GIT_VERSION=$(git rev-parse --short HEAD)
66

77
echo "> $APP_NAME packager (Windows x86_64) [v$APP_VERSION]"

wsrx/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wsrx"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
edition = "2021"
55
authors = ["Reverier-Xu <reverier.xu@xdsec.club>"]
66
description = "Controlled TCP-over-WebSocket forwarding tunnel."

wsrx/src/cli/daemon.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ fn build_router(secret: Option<String>) -> axum::Router {
125125
.allow_headers(Any)
126126
.allow_origin(Any);
127127
axum::Router::new()
128-
.nest(
129-
"/",
128+
.merge(
130129
axum::Router::new()
131130
.route(
132131
"/pool",
@@ -142,8 +141,7 @@ fn build_router(secret: Option<String>) -> axum::Router {
142141
.layer(cors_layer)
143142
.with_state(state.clone()),
144143
)
145-
.nest(
146-
"/",
144+
.merge(
147145
axum::Router::new()
148146
.route("/connect", get(get_cors_status).post(add_pending_origin))
149147
.layer(any_origin_layer)

0 commit comments

Comments
 (0)