Compare commits
12
Commits
v0.3.2
...
cf931f457c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf931f457c | ||
|
|
320c61346e
|
||
|
|
e4df25681a | ||
|
|
1e73e96482
|
||
|
|
ee4a3a3ace | ||
|
|
216bd52e67
|
||
|
|
cea885454e | ||
|
|
936715f993
|
||
|
|
67c3f3b484 | ||
|
|
962320f553
|
||
|
|
3c712d3d30 | ||
|
|
d6ab83fc2e
|
No files matched your search
+38
-6
@@ -69,10 +69,9 @@ jobs:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
cli/target
|
||||
key: ${{ runner.os }}-cargo-check-${{ hashFiles('cli/Cargo.lock') }}
|
||||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('cli/Cargo.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-cargo-check-
|
||||
${{ runner.os }}-cargo-registry-
|
||||
|
||||
- name: Install Rust
|
||||
shell: powershell
|
||||
@@ -140,8 +139,9 @@ jobs:
|
||||
cli-arm64:
|
||||
name: CLI (linux-arm64, static)
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 45
|
||||
continue-on-error: true
|
||||
timeout-minutes: 60
|
||||
env:
|
||||
CARGO_PROFILE_DEV_DEBUG: "0"
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
@@ -151,11 +151,43 @@ jobs:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
cli/target
|
||||
cli/target/debug
|
||||
cli/target/aarch64-unknown-linux-musl
|
||||
key: ${{ runner.os }}-cargo-arm64-check-${{ hashFiles('cli/Cargo.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-cargo-arm64-check-
|
||||
|
||||
- name: Add the arm64 target
|
||||
run: rustup target add aarch64-unknown-linux-musl
|
||||
|
||||
- name: Cross-compile for arm64
|
||||
working-directory: cli
|
||||
run: cargo zigbuild --target aarch64-unknown-linux-musl --no-default-features
|
||||
|
||||
cli-x86-64:
|
||||
name: CLI (linux-x86-64, static)
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
env:
|
||||
CARGO_PROFILE_DEV_DEBUG: "0"
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- name: Cache cargo
|
||||
uses: actions/cache@v6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
cli/target/debug
|
||||
cli/target/x86_64-unknown-linux-musl
|
||||
key: ${{ runner.os }}-cargo-x86-64-check-${{ hashFiles('cli/Cargo.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-cargo-x86-64-check-
|
||||
|
||||
- name: Add the x86-64 target
|
||||
run: rustup target add x86_64-unknown-linux-musl
|
||||
|
||||
- name: Cross-compile for x86-64
|
||||
working-directory: cli
|
||||
run: cargo zigbuild --target x86_64-unknown-linux-musl
|
||||
@@ -19,7 +19,8 @@ jobs:
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
if: "!startsWith(github.event.head_commit.message, 'Release ')"
|
||||
# Releases reach main as a merge commit of the chore(release) branch, so match the scope.
|
||||
if: "!contains(github.event.head_commit.message, '(release)')"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
@@ -56,10 +56,11 @@ jobs:
|
||||
include:
|
||||
- name: linux-x64
|
||||
os: ubuntu-latest
|
||||
target: x86_64-unknown-linux-gnu
|
||||
target: x86_64-unknown-linux-musl
|
||||
artifact: frislit-linux-x64
|
||||
ext: ""
|
||||
is_linux: true
|
||||
is_musl: true
|
||||
deb_arch: amd64
|
||||
rpm_arch: x86_64
|
||||
- name: windows-x64
|
||||
@@ -103,13 +104,25 @@ jobs:
|
||||
"$env:USERPROFILE\.cargo\bin" | Out-File -FilePath $env:GITHUB_PATH -Append
|
||||
}
|
||||
|
||||
- name: Add the static Linux target
|
||||
if: matrix.is_musl
|
||||
shell: bash
|
||||
run: rustup target add ${{ matrix.target }}
|
||||
|
||||
- name: Stamp the version
|
||||
shell: bash
|
||||
env:
|
||||
VERSION: ${{ needs.prepare.outputs.version }}
|
||||
run: sed -i "s/^version = \".*\"/version = \"$VERSION\"/" cli/Cargo.toml
|
||||
|
||||
- name: Build the CLI (static)
|
||||
if: matrix.is_musl
|
||||
shell: bash
|
||||
working-directory: cli
|
||||
run: cargo zigbuild --release --target ${{ matrix.target }}
|
||||
|
||||
- name: Build the CLI
|
||||
if: ${{ !matrix.is_musl }}
|
||||
shell: bash
|
||||
working-directory: cli
|
||||
run: cargo build --release --target ${{ matrix.target }}
|
||||
@@ -120,6 +133,12 @@ jobs:
|
||||
mkdir -p dist
|
||||
cp "cli/target/${{ matrix.target }}/release/frislit${{ matrix.ext }}" "dist/${{ matrix.artifact }}"
|
||||
|
||||
- name: Check that the Linux binary is static
|
||||
if: matrix.is_linux
|
||||
shell: bash
|
||||
run: |
|
||||
file "dist/${{ matrix.artifact }}" | tee /dev/stderr | grep -Eq 'static(ally|-pie) linked'
|
||||
|
||||
- name: Build the .deb and the .rpm
|
||||
if: matrix.is_linux
|
||||
shell: bash
|
||||
@@ -180,7 +199,6 @@ jobs:
|
||||
needs: prepare
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
continue-on-error: true
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
@@ -213,6 +231,11 @@ jobs:
|
||||
cp cli/target/aarch64-unknown-linux-musl/release/frislit stage/cli/frislit
|
||||
chmod +x stage/cli/frislit
|
||||
|
||||
- name: Check that the binary is static
|
||||
shell: bash
|
||||
run: |
|
||||
file dist/frislit-linux-arm64 | tee /dev/stderr | grep -Eq 'static(ally|-pie) linked'
|
||||
|
||||
- name: Build the .deb and the .rpm
|
||||
env:
|
||||
PKG_VERSION: ${{ needs.prepare.outputs.semver }}
|
||||
@@ -380,7 +403,7 @@ jobs:
|
||||
|
||||
publish:
|
||||
name: Publish release
|
||||
needs: [prepare, cli, server, docker]
|
||||
needs: [prepare, cli, cli-arm64, server, docker]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
permissions:
|
||||
|
||||
@@ -7,6 +7,32 @@ and this project adheres to [Semantic Versioning 2.0.0](https://semver.org/spec/
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.3.4] - 2026-11-17
|
||||
|
||||
### Fixed
|
||||
|
||||
- TCP tunnels behind a proxy that sends the PROXY protocol now check the allow list against the real
|
||||
client address. The control connection ignored the address the TLS front already parsed, so
|
||||
`--allow` rules rejected everyone with the proxy's address instead.
|
||||
|
||||
## [0.3.3] - 2026-11-17
|
||||
|
||||
### Changed
|
||||
|
||||
- The CI caches each static Linux target under its own key, builds them without debug info, and
|
||||
checks the x86-64 build in a job of its own, so the cross-compile no longer rebuilds from scratch
|
||||
on every run. The Windows check stops uploading `cli/target` to the cache, which cost more time
|
||||
than the check itself.
|
||||
- The development image is skipped for releases again: the guard looked for a `Release ` prefix,
|
||||
while releases reach `main` as `chore(release): X.Y.Z` commits and their merge commits.
|
||||
|
||||
### Fixed
|
||||
|
||||
- The Linux CLI binaries are statically linked against musl, so they run on any distribution
|
||||
regardless of its glibc version: `frislit-linux-x64` no longer demands glibc 2.44.
|
||||
- The CI cross-compile job also builds the x86-64 musl binary, and both Linux jobs fail instead of
|
||||
passing silently when the static build breaks.
|
||||
|
||||
## [0.3.2] - 2026-11-17
|
||||
|
||||
### Changed
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "frislit",
|
||||
"version": "0.3.2",
|
||||
"version": "0.3.4",
|
||||
"description": "Self-hosted tunnels: subdomain, path and direct TCP/UDP behind one public port",
|
||||
"main": "server/index.js",
|
||||
"repository": "https://git.fristy.net/fristy/frislit.git",
|
||||
|
||||
@@ -11,14 +11,6 @@ vendor: "frislit"
|
||||
homepage: "https://git.fristy.net/fristy/frislit"
|
||||
license: "MIT"
|
||||
|
||||
overrides:
|
||||
deb:
|
||||
depends:
|
||||
- libc6 (>= 2.35)
|
||||
rpm:
|
||||
depends:
|
||||
- glibc >= 2.35
|
||||
|
||||
contents:
|
||||
- src: stage/cli/frislit
|
||||
dst: /usr/bin/frislit
|
||||
|
||||
@@ -22,8 +22,9 @@ const createControlServer = ({ config, auth, registry, connections, intel, visit
|
||||
const forwarded = config.trustProxy && req.headers["x-forwarded-for"]
|
||||
? String(req.headers["x-forwarded-for"]).split(",")[0].trim()
|
||||
: null;
|
||||
const session = new MuxSession(ws, { parity: 0, name: `cli ${req.socket.remoteAddress}` });
|
||||
session.client = { id: randomToken(12), ip: forwarded || req.socket.remoteAddress || "", connectedAt: Date.now() };
|
||||
const clientIp = req.socket?.frislitIp || forwarded || req.socket.remoteAddress || "";
|
||||
const session = new MuxSession(ws, { parity: 0, name: `cli ${clientIp}` });
|
||||
session.client = { id: randomToken(12), ip: clientIp, connectedAt: Date.now() };
|
||||
const headerToken = auth.bearerFromHeaders(req.headers);
|
||||
let state = "hello";
|
||||
let role = null;
|
||||
@@ -84,7 +85,7 @@ const createControlServer = ({ config, auth, registry, connections, intel, visit
|
||||
state = "ready";
|
||||
attachJoiner(tunnel, session, { connections, intel, visitors });
|
||||
session.sendControl({ type: "joined", id: tunnel.id, port: tunnel.target.port, online: tunnel.online });
|
||||
logger.info(`Joiner attached to ${tunnel.id}`, { from: req.socket.remoteAddress });
|
||||
logger.info(`Joiner attached to ${tunnel.id}`, { from: session.client.ip });
|
||||
}
|
||||
} catch (err) {
|
||||
fail(session, err.code || "bad_request", err.message);
|
||||
|
||||
Reference in new issue
Block a user