Skip to content

Commit

Permalink
v0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
hieyou1 committed Aug 8, 2024
1 parent 1b0d799 commit 55fd978
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v0.0.6

- Fix bug causing InterTLS to crash when `ipFallback` was not set
- Fix `run.ts`/`run.js` environment variable name

## v0.0.5

- Add `ipFallback` to enable a default TLS configuration for those accessing the server that bypass SNI by connecting directly to its IP
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/run.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/run.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "intertls",
"type": "module",
"version": "0.0.5",
"version": "0.0.6",
"main": "dist/index.js",
"license": "GPL-3.0-only",
"scripts": {
Expand All @@ -17,4 +17,4 @@
"nanoid": "^5.0.7",
"typescript": "^5.5.3"
}
}
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export class InterTLS {
pauseOnConnect: true,
"SNICallback": this.sni.bind(this)
} as TlsOptions;
if (this.config.ipFallback != false) {
if (this.config.ipFallback) {
tlsOpts = {
...tlsOpts,
...this.config.ipFallback
Expand Down
2 changes: 1 addition & 1 deletion src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
import { InterTLS, InterTLSConfiguration } from "./index.js";
import { readFile } from "fs/promises";

await (new InterTLS(JSON.parse(await readFile(process.env.INTERHTTPS_CONFIG ?? "./config.json", "utf-8")) as InterTLSConfiguration)).listen();
await (new InterTLS(JSON.parse(await readFile(process.env.INTERTLS_CONFIG ?? "./config.json", "utf-8")) as InterTLSConfiguration)).listen();
console.log("Listening");

0 comments on commit 55fd978

Please sign in to comment.