File tree Expand file tree Collapse file tree 9 files changed +10
-49
lines changed
Expand file tree Collapse file tree 9 files changed +10
-49
lines changed Original file line number Diff line number Diff line change 1313
1414env :
1515 APP_NAME : " WebSocketReflectorX"
16- APP_VERSION : " 0.3.0 "
16+ APP_VERSION : " 0.3.1 "
1717
1818# -------------------------------------------------------------------------------
1919# Workflow 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"
Original file line number Diff line number Diff line change 1818
1919env :
2020 APP_NAME : " WebSocketReflectorX"
21- APP_VERSION : " 0.3.0 "
21+ APP_VERSION : " 0.3.1 "
2222 QT_VERSION : " 6.8.1"
2323
2424# -------------------------------------------------------------------------------
Original file line number Diff line number Diff line change 1313
1414env :
1515 APP_NAME : " WebSocketReflectorX"
16- APP_VERSION : " 0.3.0 "
16+ APP_VERSION : " 0.3.1 "
1717 QT_VERSION : " 6.8.1"
1818
1919# -------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.20)
22
33set (VERSION_MAJOR 0)
44set (VERSION_MINOR 3)
5- set (VERSION_PATCH 0 )
5+ set (VERSION_PATCH 1 )
66
77execute_process (
88 COMMAND git describe --always --dirty
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33export APP_NAME=" WebSocketReflectorX"
4- export APP_VERSION=0.3.0
4+ export APP_VERSION=0.3.1
55export GIT_VERSION=$( git rev-parse --short HEAD)
66
77echo " > $APP_NAME packager (Linux x86_64) [v$APP_VERSION ]"
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33export APP_NAME=" WebSocketReflectorX"
4- export APP_VERSION=0.3.0
4+ export APP_VERSION=0.3.1
55export GIT_VERSION=$( git rev-parse --short HEAD)
66
77arch=x86_64
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33export APP_NAME=" WebSocketReflectorX"
4- export APP_VERSION=0.3.0
4+ export APP_VERSION=0.3.1
55export GIT_VERSION=$( git rev-parse --short HEAD)
66
77echo " > $APP_NAME packager (Windows x86_64) [v$APP_VERSION ]"
Original file line number Diff line number Diff line change 11[package ]
22name = " wsrx"
3- version = " 0.3.0 "
3+ version = " 0.3.1 "
44edition = " 2021"
55authors = [" Reverier-Xu <reverier.xu@xdsec.club>" ]
66description = " Controlled TCP-over-WebSocket forwarding tunnel."
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments