Compare commits
24
Commits
v0.3.3
..
8e0245a276
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8e0245a276 | ||
|
|
c9d15a909d | ||
|
|
7ccba78283 | ||
|
|
2d4708ae19 | ||
|
|
d50853f72f | ||
|
|
53e694718b | ||
|
|
1a1cef2ed6 | ||
|
|
3ebf4bb01f | ||
|
|
878350f51c | ||
|
|
882157ea75 | ||
|
|
4b800848c9 | ||
|
|
1f0083cac0 | ||
|
|
0bf86af851 | ||
|
|
d70323c204 | ||
|
|
8b7b93dd31 | ||
|
|
a987c1dda9 | ||
|
|
cfe42840c7 | ||
|
|
414b477491 | ||
|
|
41fd144c46 | ||
|
|
7426c11ded | ||
|
|
cf931f457c | ||
|
|
320c61346e
|
||
|
|
e4df25681a | ||
|
|
1e73e96482
|
No files matched your search
@@ -7,6 +7,14 @@ 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
|
## [0.3.3] - 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.77.0",
|
||||||
"resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.74.0.tgz",
|
"resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.77.0.tgz",
|
||||||
"integrity": "sha512-A1doIs/1fj1WnPbtIT7WRiM6Kvw5NUg+BtkoOh3Shpr4obwSDVt6WxCEcNH56EWprzuCoKle1OF0RqIkojwL1A==",
|
"integrity": "sha512-VS6sOi8ZUH1qm6swBL/tpI4xAhB6pFTdHvw3pfCJD+DaTJwpyynVzfOS6mdyMZ+OCdY/GMSQbqinOMOPbNSrQA==",
|
||||||
"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.3",
|
"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",
|
||||||
|
|||||||
@@ -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