We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a9d216 commit b50e343Copy full SHA for b50e343
1 file changed
lib/server.ts
@@ -147,6 +147,12 @@ export class Server {
147
const f2fAppRaw = options.f2fApp || this.mightGetEnv("F2F_APP")
148
if (f2fAppRaw) {
149
const f2fApp = new URL(f2fAppRaw)
150
+ if (f2fApp.protocol !== "f2f:" && f2fApp.protocol !== "f2fs:") {
151
+ console.log(
152
+ "F2F_APP must use f2f:// (http) or f2fs:// (https) protocol, e.g. f2fs://keyId:keySecret@app.first2find.nl",
153
+ )
154
+ process.exit(1)
155
+ }
156
if (!f2fApp.username || !f2fApp.password) {
157
console.log(
158
"F2F_APP must contain credentials, e.g. f2fs://keyId:keySecret@app.first2find.nl",
0 commit comments