Compare commits
8
Commits
67c3f3b484
...
v0.3.4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf931f457c | ||
|
|
320c61346e
|
||
|
|
e4df25681a | ||
|
|
1e73e96482
|
||
|
|
ee4a3a3ace | ||
|
|
216bd52e67
|
||
|
|
cea885454e | ||
|
|
936715f993
|
No files matched your search
@@ -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
|
||||
|
||||
@@ -7,12 +7,24 @@ 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
|
||||
|
||||
|
||||
+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",
|
||||
|
||||
@@ -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