Compare commits
35
Commits
v0.3.2
..
883c5107ec
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
883c5107ec | ||
|
|
92e569968d | ||
|
|
8e0245a276 | ||
|
|
4c02b0068a | ||
|
|
c9d15a909d | ||
|
|
7ccba78283 | ||
|
|
2d4708ae19 | ||
|
|
d50853f72f | ||
|
|
53e694718b | ||
|
|
1a1cef2ed6 | ||
|
|
3ebf4bb01f | ||
|
|
878350f51c | ||
|
|
882157ea75 | ||
|
|
4b800848c9 | ||
|
|
1f0083cac0 | ||
|
|
0bf86af851 | ||
|
|
d70323c204 | ||
|
|
8b7b93dd31 | ||
|
|
a987c1dda9 | ||
|
|
cfe42840c7 | ||
|
|
414b477491 | ||
|
|
41fd144c46 | ||
|
|
7426c11ded | ||
|
|
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: |
|
path: |
|
||||||
~/.cargo/registry
|
~/.cargo/registry
|
||||||
~/.cargo/git
|
~/.cargo/git
|
||||||
cli/target
|
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('cli/Cargo.lock') }}
|
||||||
key: ${{ runner.os }}-cargo-check-${{ hashFiles('cli/Cargo.lock') }}
|
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-check-
|
${{ runner.os }}-cargo-registry-
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
shell: powershell
|
shell: powershell
|
||||||
@@ -140,8 +139,9 @@ jobs:
|
|||||||
cli-arm64:
|
cli-arm64:
|
||||||
name: CLI (linux-arm64, static)
|
name: CLI (linux-arm64, static)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 45
|
timeout-minutes: 60
|
||||||
continue-on-error: true
|
env:
|
||||||
|
CARGO_PROFILE_DEV_DEBUG: "0"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
|
|
||||||
@@ -151,11 +151,43 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
~/.cargo/registry
|
~/.cargo/registry
|
||||||
~/.cargo/git
|
~/.cargo/git
|
||||||
cli/target
|
cli/target/debug
|
||||||
|
cli/target/aarch64-unknown-linux-musl
|
||||||
key: ${{ runner.os }}-cargo-arm64-check-${{ hashFiles('cli/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-arm64-check-${{ hashFiles('cli/Cargo.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-arm64-check-
|
${{ runner.os }}-cargo-arm64-check-
|
||||||
|
|
||||||
|
- name: Add the arm64 target
|
||||||
|
run: rustup target add aarch64-unknown-linux-musl
|
||||||
|
|
||||||
- name: Cross-compile for arm64
|
- name: Cross-compile for arm64
|
||||||
working-directory: cli
|
working-directory: cli
|
||||||
run: cargo zigbuild --target aarch64-unknown-linux-musl --no-default-features
|
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:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
|
|||||||
@@ -56,10 +56,11 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- name: linux-x64
|
- name: linux-x64
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
target: x86_64-unknown-linux-gnu
|
target: x86_64-unknown-linux-musl
|
||||||
artifact: frislit-linux-x64
|
artifact: frislit-linux-x64
|
||||||
ext: ""
|
ext: ""
|
||||||
is_linux: true
|
is_linux: true
|
||||||
|
is_musl: true
|
||||||
deb_arch: amd64
|
deb_arch: amd64
|
||||||
rpm_arch: x86_64
|
rpm_arch: x86_64
|
||||||
- name: windows-x64
|
- name: windows-x64
|
||||||
@@ -103,13 +104,25 @@ jobs:
|
|||||||
"$env:USERPROFILE\.cargo\bin" | Out-File -FilePath $env:GITHUB_PATH -Append
|
"$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
|
- name: Stamp the version
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ needs.prepare.outputs.version }}
|
VERSION: ${{ needs.prepare.outputs.version }}
|
||||||
run: sed -i "s/^version = \".*\"/version = \"$VERSION\"/" cli/Cargo.toml
|
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
|
- name: Build the CLI
|
||||||
|
if: ${{ !matrix.is_musl }}
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: cli
|
working-directory: cli
|
||||||
run: cargo build --release --target ${{ matrix.target }}
|
run: cargo build --release --target ${{ matrix.target }}
|
||||||
@@ -120,6 +133,12 @@ jobs:
|
|||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
cp "cli/target/${{ matrix.target }}/release/frislit${{ matrix.ext }}" "dist/${{ matrix.artifact }}"
|
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
|
- name: Build the .deb and the .rpm
|
||||||
if: matrix.is_linux
|
if: matrix.is_linux
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -180,7 +199,6 @@ jobs:
|
|||||||
needs: prepare
|
needs: prepare
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
continue-on-error: true
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
@@ -213,6 +231,11 @@ jobs:
|
|||||||
cp cli/target/aarch64-unknown-linux-musl/release/frislit stage/cli/frislit
|
cp cli/target/aarch64-unknown-linux-musl/release/frislit stage/cli/frislit
|
||||||
chmod +x 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
|
- name: Build the .deb and the .rpm
|
||||||
env:
|
env:
|
||||||
PKG_VERSION: ${{ needs.prepare.outputs.semver }}
|
PKG_VERSION: ${{ needs.prepare.outputs.semver }}
|
||||||
@@ -380,7 +403,7 @@ jobs:
|
|||||||
|
|
||||||
publish:
|
publish:
|
||||||
name: Publish release
|
name: Publish release
|
||||||
needs: [prepare, cli, server, docker]
|
needs: [prepare, cli, cli-arm64, server, docker]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
@@ -7,6 +7,32 @@ and this project adheres to [Semantic Versioning 2.0.0](https://semver.org/spec/
|
|||||||
|
|
||||||
## [Unreleased]
|
## [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
|
## [0.3.2] - 2026-11-17
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|||||||
Generated
+10
-10
@@ -246,9 +246,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "anyhow"
|
name = "anyhow"
|
||||||
version = "1.0.104"
|
version = "1.0.105"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"
|
checksum = "2cb931c189b85683d69a5cfad41d4d418671e1ac413dd209f3f2fc31e3cfd902"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "approx"
|
name = "approx"
|
||||||
@@ -671,9 +671,9 @@ checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bytes"
|
name = "bytes"
|
||||||
version = "1.12.1"
|
version = "1.12.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
|
checksum = "776dfebd015e2d8732c684a2c71003674ccb49457b539b9e82151ba38e96dd7c"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cairo-rs"
|
name = "cairo-rs"
|
||||||
@@ -827,9 +827,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "clap"
|
name = "clap"
|
||||||
version = "4.6.8"
|
version = "4.6.9"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ac230478587d0269d8d6998b82ae69ea51509d55df66d9e92edd1f986904cd4a"
|
checksum = "844c5c0b65be192cb68d570cca1b21a6444431d24e39c084dc0336177015337c"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap_builder",
|
"clap_builder",
|
||||||
"clap_derive",
|
"clap_derive",
|
||||||
@@ -849,9 +849,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "clap_derive"
|
name = "clap_derive"
|
||||||
version = "4.6.8"
|
version = "4.6.9"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "895c9d8d2ac2dd8b8a29f3724a14e72aaaa6debcf8c38c82f97305c6a172767a"
|
checksum = "b4c174f11f949b9ca8c60580925e282b9cbd5454750e506f08648b2038080cd7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"heck 0.5.0",
|
"heck 0.5.0",
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
@@ -4201,9 +4201,9 @@ checksum = "d55d956fa96f5ec02be2e13af0e20391a5aa83d6a074e3ad368959d0fab299ea"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "qrcode"
|
name = "qrcode"
|
||||||
version = "0.14.1"
|
version = "0.15.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "d68782463e408eb1e668cf6152704bd856c78c5b6417adaee3203d8f4c1fc9ec"
|
checksum = "ace1a365f55004297f2cf24acfd96d02966246ca423385273b58a7dc873ee14d"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "quick-error"
|
name = "quick-error"
|
||||||
|
|||||||
+1
-1
@@ -35,7 +35,7 @@ anyhow = "1"
|
|||||||
futures-util = "0.3"
|
futures-util = "0.3"
|
||||||
open = "5"
|
open = "5"
|
||||||
indicatif = "0.18"
|
indicatif = "0.18"
|
||||||
qrcode = { version = "0.14", default-features = false }
|
qrcode = { version = "0.15", default-features = false }
|
||||||
arboard = { version = "3", default-features = false }
|
arboard = { version = "3", default-features = false }
|
||||||
eframe = { version = "0.37", optional = true }
|
eframe = { version = "0.37", optional = true }
|
||||||
global-hotkey = { version = "0.10", optional = true }
|
global-hotkey = { version = "0.10", optional = true }
|
||||||
|
|||||||
Generated
+19
-13
@@ -4362,9 +4362,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/lucide-react": {
|
"node_modules/lucide-react": {
|
||||||
"version": "1.74.0",
|
"version": "1.78.0",
|
||||||
"resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.74.0.tgz",
|
"resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.78.0.tgz",
|
||||||
"integrity": "sha512-A1doIs/1fj1WnPbtIT7WRiM6Kvw5NUg+BtkoOh3Shpr4obwSDVt6WxCEcNH56EWprzuCoKle1OF0RqIkojwL1A==",
|
"integrity": "sha512-61NFdT5ZfAY8xs3LWKkB78GVeuiCcjYFEXeHWxWP+mQhP+UWLGsA9hJZQPtIyXRDhOvT8kgmWwAIyH5L7RIhAA==",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@types/react": "*",
|
"@types/react": "*",
|
||||||
@@ -4892,9 +4892,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/react-router": {
|
"node_modules/react-router": {
|
||||||
"version": "7.18.5",
|
"version": "7.18.6",
|
||||||
"resolved": "https://registry.npmjs.org/react-router/-/react-router-7.18.5.tgz",
|
"resolved": "https://registry.npmjs.org/react-router/-/react-router-7.18.6.tgz",
|
||||||
"integrity": "sha512-dTgvcXDOrLPrlLHrcZAqWveiK1hMSqN+rGAJzegP8HtmNkfRxOoshGWBNX3ZJ0cZjOHkRdlUJtaIhZMLLyGyPw==",
|
"integrity": "sha512-SP8KqKfRLlJzqzPseC+r6yYFsqPEavtQCC4BKV810tBGijjESLtwVPam+gPOO+wYeXrYN/TNy2CAykQVcNg4iQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cookie": "^1.0.1",
|
"cookie": "^1.0.1",
|
||||||
@@ -4914,12 +4914,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/react-router-dom": {
|
"node_modules/react-router-dom": {
|
||||||
"version": "7.18.5",
|
"version": "7.18.6",
|
||||||
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.18.5.tgz",
|
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.18.6.tgz",
|
||||||
"integrity": "sha512-9HcfDMU6JJ/fp6gJZYGwNE6RknVGS4kBjH1HkNw959mCJi70TVwdipQWv2FEol9uGpi+SZTFtVpJPtEQfayeOw==",
|
"integrity": "sha512-a8JzFsKEY3EY9QL7t4T1b1OhuY0ngEfwMzXQNgBO/2cuIW9028JbVq3uk2rKnjLredzcIoDKLzUkguIq6fnkFA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react-router": "7.18.5"
|
"react-router": "7.18.6"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=20.0.0"
|
"node": ">=20.0.0"
|
||||||
@@ -4945,9 +4945,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/recharts": {
|
"node_modules/recharts": {
|
||||||
"version": "3.10.1",
|
"version": "3.11.0",
|
||||||
"resolved": "https://registry.npmjs.org/recharts/-/recharts-3.10.1.tgz",
|
"resolved": "https://registry.npmjs.org/recharts/-/recharts-3.11.0.tgz",
|
||||||
"integrity": "sha512-QXFrvt6IVcw7eeZCoyXTwkIJAX3Dv1nyVhMicXJ47GsGDDpcN8z6o644DibE9XjpBTThtsomLKnTV6lc+cVFUA==",
|
"integrity": "sha512-Hs7vXskAYl82TKKkeikPxMFOaOqVJBoqxay6a4Oj+sBURVorpSKk8J732vyNsmedxK08lpPhyj2GL4E6ZMHR6Q==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"www"
|
"www"
|
||||||
@@ -4969,9 +4969,15 @@
|
|||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
"@types/react": "*",
|
||||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
||||||
"react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
"react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
||||||
"react-is": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
"react-is": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/react": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/redux": {
|
"node_modules/redux": {
|
||||||
|
|||||||
Generated
+13
-13
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "frislit",
|
"name": "frislit",
|
||||||
"version": "0.3.1",
|
"version": "0.3.4",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "frislit",
|
"name": "frislit",
|
||||||
"version": "0.3.1",
|
"version": "0.3.4",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@simplewebauthn/server": "^14.0.3",
|
"@simplewebauthn/server": "^14.0.3",
|
||||||
@@ -2961,9 +2961,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/jose": {
|
"node_modules/jose": {
|
||||||
"version": "6.2.15",
|
"version": "6.2.18",
|
||||||
"resolved": "https://registry.npmjs.org/jose/-/jose-6.2.15.tgz",
|
"resolved": "https://registry.npmjs.org/jose/-/jose-6.2.18.tgz",
|
||||||
"integrity": "sha512-qdF6ewcZARtef63fJ9AKKZPgxw+t7USH6HLXYcD4CrdmSvDp79rpJSPFEKc90QBeGS63u1KQtN2MZQHC0yDIzA==",
|
"integrity": "sha512-doV4thUwgkrycJH4yLeqwTGIIZphHl+pk7CPReuMIhYhncmgzdko85MaCG4YQFTxqMFr1/oEH32tZuKKovcDEg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/panva"
|
"url": "https://github.com/sponsors/panva"
|
||||||
@@ -3368,9 +3368,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/oauth4webapi": {
|
"node_modules/oauth4webapi": {
|
||||||
"version": "3.8.8",
|
"version": "3.8.9",
|
||||||
"resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.8.8.tgz",
|
"resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.8.9.tgz",
|
||||||
"integrity": "sha512-8N28E+a/oxfXWBgOMt+ZP/JUf/XR+IFbvkAEPP3gznXOMv9BpAAwiIj0TFNz3tGTPc0ZQ8zmWBNgN1nAys0gng==",
|
"integrity": "sha512-gyn4jpaxyYFm1epl3mwqc1sFShLjT9eq/63JW+Nvk286Lz6FC72pVv/SyhJHxo+sQiHEcjIHs4TtFKX/+Md07A==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/panva"
|
"url": "https://github.com/sponsors/panva"
|
||||||
@@ -3398,13 +3398,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/openid-client": {
|
"node_modules/openid-client": {
|
||||||
"version": "6.9.0",
|
"version": "6.9.1",
|
||||||
"resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.9.0.tgz",
|
"resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.9.1.tgz",
|
||||||
"integrity": "sha512-2IvamJR8PAnWHngaCsGGA8TYfcLI2egvuqa9cOQYHIISwIUhxJwwwcCnkgVX95fzZ6J0TAna0aVGUMOxnPeRqg==",
|
"integrity": "sha512-wysSRjtNRRpu1S/HCVaQ7LRPSNc42lhS1szB1SihVTcA2kAarpzKyvAd+sjFX41ky7iDblGerORC8ASwpt3zqA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jose": "^6.2.15",
|
"jose": "^6.2.18",
|
||||||
"oauth4webapi": "^3.8.8"
|
"oauth4webapi": "^3.8.9"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/panva"
|
"url": "https://github.com/sponsors/panva"
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "frislit",
|
"name": "frislit",
|
||||||
"version": "0.3.2",
|
"version": "0.3.4",
|
||||||
"description": "Self-hosted tunnels: subdomain, path and direct TCP/UDP behind one public port",
|
"description": "Self-hosted tunnels: subdomain, path and direct TCP/UDP behind one public port",
|
||||||
"main": "server/index.js",
|
"main": "server/index.js",
|
||||||
"repository": "https://git.fristy.net/fristy/frislit.git",
|
"repository": "https://git.fristy.net/fristy/frislit.git",
|
||||||
|
|||||||
@@ -11,14 +11,6 @@ vendor: "frislit"
|
|||||||
homepage: "https://git.fristy.net/fristy/frislit"
|
homepage: "https://git.fristy.net/fristy/frislit"
|
||||||
license: "MIT"
|
license: "MIT"
|
||||||
|
|
||||||
overrides:
|
|
||||||
deb:
|
|
||||||
depends:
|
|
||||||
- libc6 (>= 2.35)
|
|
||||||
rpm:
|
|
||||||
depends:
|
|
||||||
- glibc >= 2.35
|
|
||||||
|
|
||||||
contents:
|
contents:
|
||||||
- src: stage/cli/frislit
|
- src: stage/cli/frislit
|
||||||
dst: /usr/bin/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"]
|
const forwarded = config.trustProxy && req.headers["x-forwarded-for"]
|
||||||
? String(req.headers["x-forwarded-for"]).split(",")[0].trim()
|
? String(req.headers["x-forwarded-for"]).split(",")[0].trim()
|
||||||
: null;
|
: null;
|
||||||
const session = new MuxSession(ws, { parity: 0, name: `cli ${req.socket.remoteAddress}` });
|
const clientIp = req.socket?.frislitIp || forwarded || req.socket.remoteAddress || "";
|
||||||
session.client = { id: randomToken(12), ip: forwarded || req.socket.remoteAddress || "", connectedAt: Date.now() };
|
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);
|
const headerToken = auth.bearerFromHeaders(req.headers);
|
||||||
let state = "hello";
|
let state = "hello";
|
||||||
let role = null;
|
let role = null;
|
||||||
@@ -84,7 +85,7 @@ const createControlServer = ({ config, auth, registry, connections, intel, visit
|
|||||||
state = "ready";
|
state = "ready";
|
||||||
attachJoiner(tunnel, session, { connections, intel, visitors });
|
attachJoiner(tunnel, session, { connections, intel, visitors });
|
||||||
session.sendControl({ type: "joined", id: tunnel.id, port: tunnel.target.port, online: tunnel.online });
|
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) {
|
} catch (err) {
|
||||||
fail(session, err.code || "bad_request", err.message);
|
fail(session, err.code || "bad_request", err.message);
|
||||||
|
|||||||
Reference in new issue
Block a user