MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / generateConfig

Method generateConfig

warp/warp.ts:312–332  ·  view source on GitHub ↗
(account: { privateKey: string; address6: string }, port: number)

Source from the content-addressed store, hash-verified

310 const dns = "1.1.1.1,8.8.8.8,8.8.4.4,2606:4700:4700::1111,2001:4860:4860::8888,2001:4860:4860::8844";
311
312 return `[Interface]
313PrivateKey = ${account.privateKey}
314Address = ${address4}
315Address = ${address6}
316DNS = ${dns}
317MTU = 1280
318
319[Peer]
320PublicKey = bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=
321AllowedIPs = 0.0.0.0/0, ::/0
322Endpoint = engage.cloudflareclient.com:2408
323PersistentKeepalive = 25
324
325[Socks5]
326BindAddress = 127.0.0.1:${port}`;
327 }
328
329 private static generateService(): string {
330 return `[Unit]
331Description=WireProxy for WARP
332Wants=network-online.target
333After=network-online.target
334Documentation=https://github.com/fscarmen/warp-sh
335Documentation=https://github.com/pufferffish/wireproxy

Callers 1

setupAndStartMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected