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