Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
214f01612d | ||
|
|
dc8be1f83a
|
||
|
|
58a8feb320 | ||
|
|
f8c7b5f968 | ||
|
|
51e6553e61 | ||
|
|
5a6ad0d9bb | ||
|
|
eac38de5e6 | ||
|
|
d7bbe279be | ||
|
|
c88968b340 | ||
|
|
459555ca25 | ||
|
|
42fdf919b7 | ||
|
|
f30abf0291 | ||
|
|
e608b5c6a1 | ||
|
|
326d760a8c | ||
|
|
8c43fc61fa | ||
|
|
0fd78463eb | ||
|
|
08243e4afa | ||
|
|
684b516d99 | ||
|
|
a0da7631ab | ||
|
|
299552cbaf | ||
|
|
ddf6751268 | ||
|
|
376844a846 | ||
|
|
d438f5f0ca | ||
|
|
d9bec4a0b1 | ||
|
|
e572f096de | ||
|
|
e9b5642be2 | ||
|
|
e39c7b7b6b | ||
|
|
e4141b1ae1 | ||
|
|
4416eff3a1 | ||
|
|
fa7c5608b6 | ||
|
|
699e390358 | ||
|
|
9c3d438fce | ||
|
|
3126c80e24 | ||
|
|
cd5e172015 | ||
|
|
2752189549 | ||
|
|
c0080652a2
|
||
|
|
a408c0bb17 | ||
|
|
a8eec85be2
|
||
|
|
d3cbbc87a9 | ||
|
|
7d98aa7a11 | ||
|
|
07b40de57f | ||
|
|
35bbc25a92 | ||
|
|
6fbe5aaad9 | ||
|
|
40e24d5481 | ||
|
|
266348d60d | ||
|
|
09ccf1aead | ||
|
|
cf4fb503b8 | ||
|
|
65591b8eab | ||
|
|
e6a70f0f6c | ||
|
|
9631d526fb | ||
|
|
d9d3e2ad2a | ||
|
|
c5321be85b | ||
|
|
40cf435e38 | ||
|
|
ed94cf2a7c | ||
|
|
e9e1be87a4 | ||
|
|
8d2b98381d | ||
|
|
1c6c2ca75c | ||
|
|
5e916b47f0 | ||
|
|
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
|
||
|
|
d4e9a5c092 | ||
|
|
174e19a2a5
|
||
|
|
1373d05d48 | ||
|
|
090fa3de5a
|
||
|
|
a02370a214
|
||
|
|
ae9b617882
|
||
|
|
0326b2654f | ||
|
|
29959aea9b | ||
|
|
a2c8f710e1 | ||
|
|
bf8dc072d1 | ||
|
|
a185a469e9 | ||
|
|
3599cd44c9 | ||
|
|
305cf4d7ad | ||
|
|
b2f795e876 | ||
|
|
e0cbd676ff | ||
|
|
b6bb4eb017 | ||
|
|
bc72164a70 | ||
|
|
1edfcf1624 | ||
|
|
b012c7ad83 | ||
|
|
f329a2df17 | ||
|
|
c9984b133d | ||
|
|
0675d2ec8b | ||
|
|
0ba6e71f43 | ||
|
|
f5e8019b2d
|
||
|
|
7b2a67fa80 | ||
|
|
e302e80cc9
|
||
|
|
beaf2d8844 | ||
|
|
6dd9262d7a
|
||
|
|
68d5c0f790 | ||
|
|
a187b6a759 | ||
|
|
8108c9e992 | ||
|
|
857a1e4fe2 | ||
|
|
cc80345fed | ||
|
|
aa08de8651 | ||
|
|
8b2fdaac18 | ||
|
|
d9ca4da126 | ||
|
|
110e8fbc2f | ||
|
|
3d5a791f60 | ||
|
|
444aec3abe |
No files matched your search
+49
-6
@@ -63,6 +63,16 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- 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
|
- name: Install Rust
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
@@ -129,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
|
||||||
|
|
||||||
@@ -140,11 +151,43 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
~/.cargo/registry
|
~/.cargo/registry
|
||||||
~/.cargo/git
|
~/.cargo/git
|
||||||
cli/target
|
cli/target/debug
|
||||||
key: ${{ runner.os }}-cargo-arm64-${{ hashFiles('cli/Cargo.lock') }}
|
cli/target/aarch64-unknown-linux-musl
|
||||||
|
key: ${{ runner.os }}-cargo-arm64-check-${{ hashFiles('cli/Cargo.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-arm64-
|
${{ 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 --release --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
|
||||||
@@ -74,7 +75,6 @@ jobs:
|
|||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Cache cargo
|
- name: Cache cargo
|
||||||
if: matrix.os != 'windows-latest'
|
|
||||||
uses: actions/cache@v6
|
uses: actions/cache@v6
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
@@ -104,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 }}
|
||||||
@@ -121,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
|
||||||
@@ -181,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:
|
||||||
@@ -194,9 +211,9 @@ jobs:
|
|||||||
~/.cargo/registry
|
~/.cargo/registry
|
||||||
~/.cargo/git
|
~/.cargo/git
|
||||||
cli/target
|
cli/target
|
||||||
key: ${{ runner.os }}-cargo-arm64-${{ hashFiles('cli/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-arm64-release-${{ hashFiles('cli/Cargo.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-arm64-
|
${{ runner.os }}-cargo-arm64-release-
|
||||||
|
|
||||||
- name: Stamp the version
|
- name: Stamp the version
|
||||||
env:
|
env:
|
||||||
@@ -214,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 }}
|
||||||
@@ -381,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,78 @@ and this project adheres to [Semantic Versioning 2.0.0](https://semver.org/spec/
|
|||||||
|
|
||||||
## [Unreleased]
|
## [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
|
## [0.3.0] - 2026-11-10
|
||||||
|
|
||||||
First release of the frislit line, based on tunlit v0.2.5 plus 61 upstream commits (dependency
|
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
|
## Commits
|
||||||
|
|
||||||
Use a conventional summary, `type(scope): summary` (for example
|
Use Conventional Commits 1.0.0: a conventional summary, `type(scope): summary` (for example
|
||||||
`fix(gate): stop challenging browser requests`). The whole commit message stays at or under 300
|
`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.
|
characters; put the reason in the body, not a paragraph of history.
|
||||||
|
|
||||||
|
|||||||
Generated
+158
-273
File diff suppressed because it is too large.
Load diff
+3
-3
@@ -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 }
|
||||||
@@ -45,10 +45,10 @@ crossterm = { version = "0.29", features = ["event-stream"] }
|
|||||||
chrono = { version = "0.4.45", default-features = false, features = ["clock"] }
|
chrono = { version = "0.4.45", default-features = false, features = ["clock"] }
|
||||||
|
|
||||||
[target.'cfg(windows)'.dependencies]
|
[target.'cfg(windows)'.dependencies]
|
||||||
windows-sys = { version = "0.61", optional = true, features = ["Win32_System_Console", "Win32_Foundation", "Win32_UI_WindowsAndMessaging"] }
|
windows-sys = { version = "0.101", optional = true, features = ["Win32_System_Console", "Win32_Foundation", "Win32_UI_WindowsAndMessaging"] }
|
||||||
|
|
||||||
[target.'cfg(any(windows, target_os = "macos"))'.dependencies]
|
[target.'cfg(any(windows, target_os = "macos"))'.dependencies]
|
||||||
tray-icon = { version = "0.26", optional = true }
|
tray-icon = { version = "0.27", optional = true }
|
||||||
|
|
||||||
[target.'cfg(target_os = "linux")'.dependencies]
|
[target.'cfg(target_os = "linux")'.dependencies]
|
||||||
ksni = { version = "0.3", optional = true, default-features = false, features = ["tokio"] }
|
ksni = { version = "0.3", optional = true, default-features = false, features = ["tokio"] }
|
||||||
|
|||||||
+3
-2
@@ -75,10 +75,11 @@ pub fn start(wake: Sender<Wake>, repaint: Repaint, _runtime: &Handle) -> Result<
|
|||||||
clicks.send(Wake::Toggle);
|
clicks.send(Wake::Toggle);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
MenuEvent::set_event_handler(Some(move |event: MenuEvent| {
|
let on_menu: tray_icon::menu::MenuEventHandler = std::sync::Arc::new(move |event: MenuEvent| {
|
||||||
if *event.id() == open_id { notify.send(Wake::Show); }
|
if *event.id() == open_id { notify.send(Wake::Show); }
|
||||||
else if *event.id() == quit_id { notify.send(Wake::Quit); }
|
else if *event.id() == quit_id { notify.send(Wake::Quit); }
|
||||||
}));
|
});
|
||||||
|
MenuEvent::set_event_handler(Some(on_menu));
|
||||||
Ok(Tray { _keep: Box::new(tray) })
|
Ok(Tray { _keep: Box::new(tray) })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Generated
+345
-230
File diff suppressed because it is too large.
Load diff
Generated
+16
-16
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "frislit",
|
"name": "frislit",
|
||||||
"version": "0.3.0",
|
"version": "0.3.6",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "frislit",
|
"name": "frislit",
|
||||||
"version": "0.3.0",
|
"version": "0.3.6",
|
||||||
"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.8.9",
|
"version": "6.9.1",
|
||||||
"resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.8.9.tgz",
|
"resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.9.1.tgz",
|
||||||
"integrity": "sha512-6mXMRNJxDOf6BflEWLXul1UwzLFz++9Ofz1PYwPwwsJsyXBsbfkO+Jo255SW1qnFNLYz4EJWHz42X4OJJrya/g==",
|
"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"
|
||||||
@@ -4514,9 +4514,9 @@
|
|||||||
"license": "ISC"
|
"license": "ISC"
|
||||||
},
|
},
|
||||||
"node_modules/ws": {
|
"node_modules/ws": {
|
||||||
"version": "8.22.2",
|
"version": "8.23.1",
|
||||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.22.2.tgz",
|
"resolved": "https://registry.npmjs.org/ws/-/ws-8.23.1.tgz",
|
||||||
"integrity": "sha512-/rEZ2ejown2N5gxVTHUu9bVVC7ttu0/Tgzf5hbTOixR3Fs7mbbXgn2DbdbcKgJOmpQMtrIUWivtYuVMnp/W/yA==",
|
"integrity": "sha512-1rzWDSN0NOi3tpwgHsQExjWRoKUGtjCkJ2gZRaaRtzhYLboMytOI9pj9PU7yCgY37auqdd4OyLofZDbkeuZmPA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10.0.0"
|
"node": ">=10.0.0"
|
||||||
|
|||||||
+1
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "frislit",
|
"name": "frislit",
|
||||||
"version": "0.3.0",
|
"version": "0.3.6",
|
||||||
"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",
|
||||||
@@ -39,7 +39,6 @@
|
|||||||
"vitepress": "^1.6.4"
|
"vitepress": "^1.6.4"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"follow-redirects": "^1.16.1",
|
|
||||||
"undici": "^6.29.1",
|
"undici": "^6.29.1",
|
||||||
"uuid": "^14.0.0"
|
"uuid": "^14.0.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
"config:recommended"
|
"config:recommended"
|
||||||
],
|
],
|
||||||
"automerge": true,
|
"automerge": true,
|
||||||
"platformAutomerge": false,
|
"platformAutomerge": true,
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
{
|
{
|
||||||
"matchUpdateTypes": [
|
"matchUpdateTypes": [
|
||||||
|
|||||||
@@ -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