Correction: freedom strategies

This commit is contained in:
Alireza Ahmadi
2023-05-16 20:21:59 +02:00
parent 58e7f51313
commit 1b93c7c0f2

View File

@@ -507,7 +507,7 @@
freedomStrategy: {
get: function () {
if (!this.templateSettings) return "AsIs";
freedomOutbound = this.templateSettings.outbounds.find((o) => o.tag === "direct");
freedomOutbound = this.templateSettings.outbounds.find((o) => o.protocol === "freedom" && !o.tag);
if (!freedomOutbound) return "AsIs";
if (!freedomOutbound.settings || !freedomOutbound.settings.domainStrategy) return "AsIs";
return freedomOutbound.settings.domainStrategy;