Compare commits
1
Commits
v0.3.6
..
cb42a020c8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cb42a020c8 |
No files matched your search
+6
-49
@@ -63,16 +63,6 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- name: Cache cargo
|
||||
uses: actions/cache@v6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('cli/Cargo.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-cargo-registry-
|
||||
|
||||
- name: Install Rust
|
||||
shell: powershell
|
||||
run: |
|
||||
@@ -139,9 +129,8 @@ jobs:
|
||||
cli-arm64:
|
||||
name: CLI (linux-arm64, static)
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
env:
|
||||
CARGO_PROFILE_DEV_DEBUG: "0"
|
||||
timeout-minutes: 45
|
||||
continue-on-error: true
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
@@ -151,43 +140,11 @@ jobs:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
cli/target/debug
|
||||
cli/target/aarch64-unknown-linux-musl
|
||||
key: ${{ runner.os }}-cargo-arm64-check-${{ hashFiles('cli/Cargo.lock') }}
|
||||
cli/target
|
||||
key: ${{ runner.os }}-cargo-arm64-${{ hashFiles('cli/Cargo.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-cargo-arm64-check-
|
||||
|
||||
- name: Add the arm64 target
|
||||
run: rustup target add aarch64-unknown-linux-musl
|
||||
${{ runner.os }}-cargo-arm64-
|
||||
|
||||
- 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
|
||||
run: cargo zigbuild --release --target aarch64-unknown-linux-musl --no-default-features
|
||||
@@ -19,8 +19,7 @@ jobs:
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
# Releases reach main as a merge commit of the chore(release) branch, so match the scope.
|
||||
if: "!contains(github.event.head_commit.message, '(release)')"
|
||||
if: "!startsWith(github.event.head_commit.message, 'Release ')"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
@@ -56,11 +56,10 @@ jobs:
|
||||
include:
|
||||
- name: linux-x64
|
||||
os: ubuntu-latest
|
||||
target: x86_64-unknown-linux-musl
|
||||
target: x86_64-unknown-linux-gnu
|
||||
artifact: frislit-linux-x64
|
||||
ext: ""
|
||||
is_linux: true
|
||||
is_musl: true
|
||||
deb_arch: amd64
|
||||
rpm_arch: x86_64
|
||||
- name: windows-x64
|
||||
@@ -75,6 +74,7 @@ jobs:
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- name: Cache cargo
|
||||
if: matrix.os != 'windows-latest'
|
||||
uses: actions/cache@v6
|
||||
with:
|
||||
path: |
|
||||
@@ -104,25 +104,13 @@ 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 }}
|
||||
@@ -133,12 +121,6 @@ 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
|
||||
@@ -199,6 +181,7 @@ jobs:
|
||||
needs: prepare
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
continue-on-error: true
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
@@ -211,9 +194,9 @@ jobs:
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
cli/target
|
||||
key: ${{ runner.os }}-cargo-arm64-release-${{ hashFiles('cli/Cargo.lock') }}
|
||||
key: ${{ runner.os }}-cargo-arm64-${{ hashFiles('cli/Cargo.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-cargo-arm64-release-
|
||||
${{ runner.os }}-cargo-arm64-
|
||||
|
||||
- name: Stamp the version
|
||||
env:
|
||||
@@ -231,11 +214,6 @@ 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 }}
|
||||
@@ -403,7 +381,7 @@ jobs:
|
||||
|
||||
publish:
|
||||
name: Publish release
|
||||
needs: [prepare, cli, cli-arm64, server, docker]
|
||||
needs: [prepare, cli, server, docker]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
permissions:
|
||||
|
||||
@@ -7,78 +7,6 @@ and this project adheres to [Semantic Versioning 2.0.0](https://semver.org/spec/
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.3.6] - 2026-12-01
|
||||
|
||||
### Changed
|
||||
|
||||
- Dependencies refreshed: `lucide-react` 1.85.0, `recharts` 3.11.3, `@codemirror/view` 6.44.2,
|
||||
`vite` 8.4.0, `eslint` 10.16.0, `@types/react` 19.3.3 and `globals` 17.15.0 in the web client,
|
||||
`ws` 8.23.1 on the server, and `windows-sys` 0.101 and `ksni` 0.3.8 in the CLI.
|
||||
|
||||
## [0.3.5] - 2026-11-25
|
||||
|
||||
### Changed
|
||||
|
||||
- Dependencies refreshed: `codemirror`, `@types/react` 19.3.2, `lucide-react` 1.80.0,
|
||||
`react-router-dom` 7.18.7, `recharts` 3.11.1 and `openid-client` 6.9.1 on the server and in the
|
||||
web client, and `clap` 4.6.10, `hyper` 1.13.0, `anyhow` 1.0.105, `bytes` 1.12.2, `qrcode` 0.15 and
|
||||
`tray-icon` 0.27 in the CLI.
|
||||
|
||||
### Fixed
|
||||
|
||||
- The tray icon builds with `tray-icon` 0.27 again: `muda` 0.22 types the menu handler as
|
||||
`Arc<dyn Fn(MenuEvent)>`, so a bare closure no longer coerces through `Some` and the handler is
|
||||
now wrapped in an `Arc` first.
|
||||
|
||||
## [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
|
||||
|
||||
- Dependencies refreshed: `ws` 8.23.0 and `openid-client` 6.9.0 on the server, `lucide-react` 1.74.0,
|
||||
`prettier` 3.10.1, `eslint` 10.15.0 and `eslint-plugin-react-refresh` 0.5.8 in the web client, and
|
||||
the Rust `clap` crate 4.6.8.
|
||||
- CONTRIBUTING names Conventional Commits 1.0.0 in its commits section, next to the Conventional
|
||||
Branch reference it already had for branches.
|
||||
- Renovate can update `follow-redirects` again: the conflicting `overrides` entry is gone, so npm no
|
||||
longer rejects the lockfile branch with `EOVERRIDE`.
|
||||
|
||||
## [0.3.1] - 2026-11-11
|
||||
|
||||
### Changed
|
||||
|
||||
- Dependencies refreshed: `prettier` 3.10.0, `vite` 8.3.8, `sass-embedded` 1.108.2 and
|
||||
`lucide-react` 1.72.0.
|
||||
- Renovate now uses Gitea's native automerge, so non-major updates merge as soon as checks pass
|
||||
instead of waiting for the next Renovate run.
|
||||
- The CI and release Windows CLI jobs cache the cargo target, and the arm64 CI job builds in debug
|
||||
mode, so the matrix jobs no longer dominate the run.
|
||||
|
||||
## [0.3.0] - 2026-11-10
|
||||
|
||||
First release of the frislit line, based on tunlit v0.2.5 plus 61 upstream commits (dependency
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ Changes reach `main` through a pull request, and CI must be green before it can
|
||||
|
||||
## Commits
|
||||
|
||||
Use Conventional Commits 1.0.0: a conventional summary, `type(scope): summary` (for example
|
||||
Use a conventional summary, `type(scope): summary` (for example
|
||||
`fix(gate): stop challenging browser requests`). The whole commit message stays at or under 300
|
||||
characters; put the reason in the body, not a paragraph of history.
|
||||
|
||||
|
||||
Generated
+271
-156
File diff suppressed because it is too large.
Load diff
+3
-3
@@ -35,7 +35,7 @@ anyhow = "1"
|
||||
futures-util = "0.3"
|
||||
open = "5"
|
||||
indicatif = "0.18"
|
||||
qrcode = { version = "0.15", default-features = false }
|
||||
qrcode = { version = "0.14", default-features = false }
|
||||
arboard = { version = "3", default-features = false }
|
||||
eframe = { version = "0.37", optional = true }
|
||||
global-hotkey = { version = "0.10", optional = true }
|
||||
@@ -45,10 +45,10 @@ crossterm = { version = "0.29", features = ["event-stream"] }
|
||||
chrono = { version = "0.4.45", default-features = false, features = ["clock"] }
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
windows-sys = { version = "0.101", optional = true, features = ["Win32_System_Console", "Win32_Foundation", "Win32_UI_WindowsAndMessaging"] }
|
||||
windows-sys = { version = "0.61", optional = true, features = ["Win32_System_Console", "Win32_Foundation", "Win32_UI_WindowsAndMessaging"] }
|
||||
|
||||
[target.'cfg(any(windows, target_os = "macos"))'.dependencies]
|
||||
tray-icon = { version = "0.27", optional = true }
|
||||
tray-icon = { version = "0.26", optional = true }
|
||||
|
||||
[target.'cfg(target_os = "linux")'.dependencies]
|
||||
ksni = { version = "0.3", optional = true, default-features = false, features = ["tokio"] }
|
||||
|
||||
+2
-3
@@ -75,11 +75,10 @@ pub fn start(wake: Sender<Wake>, repaint: Repaint, _runtime: &Handle) -> Result<
|
||||
clicks.send(Wake::Toggle);
|
||||
}
|
||||
}));
|
||||
let on_menu: tray_icon::menu::MenuEventHandler = std::sync::Arc::new(move |event: MenuEvent| {
|
||||
MenuEvent::set_event_handler(Some(move |event: MenuEvent| {
|
||||
if *event.id() == open_id { notify.send(Wake::Show); }
|
||||
else if *event.id() == quit_id { notify.send(Wake::Quit); }
|
||||
});
|
||||
MenuEvent::set_event_handler(Some(on_menu));
|
||||
}));
|
||||
Ok(Tray { _keep: Box::new(tray) })
|
||||
}
|
||||
|
||||
|
||||
Generated
+230
-345
File diff suppressed because it is too large.
Load diff
Generated
+16
-16
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "frislit",
|
||||
"version": "0.3.6",
|
||||
"version": "0.3.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "frislit",
|
||||
"version": "0.3.6",
|
||||
"version": "0.3.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@simplewebauthn/server": "^14.0.3",
|
||||
@@ -2961,9 +2961,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/jose": {
|
||||
"version": "6.2.18",
|
||||
"resolved": "https://registry.npmjs.org/jose/-/jose-6.2.18.tgz",
|
||||
"integrity": "sha512-doV4thUwgkrycJH4yLeqwTGIIZphHl+pk7CPReuMIhYhncmgzdko85MaCG4YQFTxqMFr1/oEH32tZuKKovcDEg==",
|
||||
"version": "6.2.15",
|
||||
"resolved": "https://registry.npmjs.org/jose/-/jose-6.2.15.tgz",
|
||||
"integrity": "sha512-qdF6ewcZARtef63fJ9AKKZPgxw+t7USH6HLXYcD4CrdmSvDp79rpJSPFEKc90QBeGS63u1KQtN2MZQHC0yDIzA==",
|
||||
"license": "MIT",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/panva"
|
||||
@@ -3368,9 +3368,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/oauth4webapi": {
|
||||
"version": "3.8.9",
|
||||
"resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.8.9.tgz",
|
||||
"integrity": "sha512-gyn4jpaxyYFm1epl3mwqc1sFShLjT9eq/63JW+Nvk286Lz6FC72pVv/SyhJHxo+sQiHEcjIHs4TtFKX/+Md07A==",
|
||||
"version": "3.8.8",
|
||||
"resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.8.8.tgz",
|
||||
"integrity": "sha512-8N28E+a/oxfXWBgOMt+ZP/JUf/XR+IFbvkAEPP3gznXOMv9BpAAwiIj0TFNz3tGTPc0ZQ8zmWBNgN1nAys0gng==",
|
||||
"license": "MIT",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/panva"
|
||||
@@ -3398,13 +3398,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/openid-client": {
|
||||
"version": "6.9.1",
|
||||
"resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.9.1.tgz",
|
||||
"integrity": "sha512-wysSRjtNRRpu1S/HCVaQ7LRPSNc42lhS1szB1SihVTcA2kAarpzKyvAd+sjFX41ky7iDblGerORC8ASwpt3zqA==",
|
||||
"version": "6.8.9",
|
||||
"resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.8.9.tgz",
|
||||
"integrity": "sha512-6mXMRNJxDOf6BflEWLXul1UwzLFz++9Ofz1PYwPwwsJsyXBsbfkO+Jo255SW1qnFNLYz4EJWHz42X4OJJrya/g==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"jose": "^6.2.18",
|
||||
"oauth4webapi": "^3.8.9"
|
||||
"jose": "^6.2.15",
|
||||
"oauth4webapi": "^3.8.8"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/panva"
|
||||
@@ -4514,9 +4514,9 @@
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/ws": {
|
||||
"version": "8.23.1",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.23.1.tgz",
|
||||
"integrity": "sha512-1rzWDSN0NOi3tpwgHsQExjWRoKUGtjCkJ2gZRaaRtzhYLboMytOI9pj9PU7yCgY37auqdd4OyLofZDbkeuZmPA==",
|
||||
"version": "8.22.2",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.22.2.tgz",
|
||||
"integrity": "sha512-/rEZ2ejown2N5gxVTHUu9bVVC7ttu0/Tgzf5hbTOixR3Fs7mbbXgn2DbdbcKgJOmpQMtrIUWivtYuVMnp/W/yA==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=10.0.0"
|
||||
|
||||
+2
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "frislit",
|
||||
"version": "0.3.6",
|
||||
"version": "0.3.0",
|
||||
"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",
|
||||
@@ -39,6 +39,7 @@
|
||||
"vitepress": "^1.6.4"
|
||||
},
|
||||
"overrides": {
|
||||
"follow-redirects": "^1.16.1",
|
||||
"undici": "^6.29.1",
|
||||
"uuid": "^14.0.0"
|
||||
}
|
||||
|
||||
@@ -11,6 +11,14 @@ 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
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
"config:recommended"
|
||||
],
|
||||
"automerge": true,
|
||||
"platformAutomerge": true,
|
||||
"platformAutomerge": false,
|
||||
"packageRules": [
|
||||
{
|
||||
"matchUpdateTypes": [
|
||||
|
||||
@@ -22,9 +22,8 @@ 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 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 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 headerToken = auth.bearerFromHeaders(req.headers);
|
||||
let state = "hello";
|
||||
let role = null;
|
||||
@@ -85,7 +84,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: session.client.ip });
|
||||
logger.info(`Joiner attached to ${tunnel.id}`, { from: req.socket.remoteAddress });
|
||||
}
|
||||
} catch (err) {
|
||||
fail(session, err.code || "bad_request", err.message);
|
||||
|
||||
Reference in new issue
Block a user