new: add auto warp

This commit is contained in:
Hiddify
2024-01-26 14:01:13 +01:00
parent 65b4cb706a
commit 3b4a128b58
5 changed files with 12 additions and 12 deletions

View File

@@ -147,10 +147,9 @@ func parsePeerConfig(peerConfig *PeerConfig, line string) {
}
func generateWarp() *T.Outbound {
license := ""
endpoint := "engage.cloudflareclient.com:2408"
if !warp.CheckProfileExists(license) {
warp.LoadOrCreateIdentity(license, endpoint)
warp.LoadOrCreateIdentity(license)
}
wgConfig, err := readWireGuardConfig("wgcf-profile.ini")