@@ -1183,7 +1183,6 @@ private async Task<int> GenDnsDomains(ProfileItem? node, JsonNode dns, DNSItem?
1183
1183
if ( servers != null )
1184
1184
{
1185
1185
var domainList = new List < string > ( ) ;
1186
- string ? wireguardEndpointDomain = null ;
1187
1186
if ( Utils . IsDomain ( node . Address ) )
1188
1187
{
1189
1188
domainList . Add ( node . Address ) ;
@@ -1210,14 +1209,7 @@ private async Task<int> GenDnsDomains(ProfileItem? node, JsonNode dns, DNSItem?
1210
1209
&& nextNode . ConfigType != EConfigType . TUIC
1211
1210
&& Utils . IsDomain ( nextNode . Address ) )
1212
1211
{
1213
- if ( nextNode . ConfigType == EConfigType . WireGuard )
1214
- {
1215
- wireguardEndpointDomain = nextNode . Address ;
1216
- }
1217
- else
1218
- {
1219
- domainList . Add ( nextNode . Address ) ;
1220
- }
1212
+ domainList . Add ( nextNode . Address ) ;
1221
1213
}
1222
1214
}
1223
1215
if ( domainList . Count > 0 )
@@ -1230,16 +1222,6 @@ private async Task<int> GenDnsDomains(ProfileItem? node, JsonNode dns, DNSItem?
1230
1222
} ;
1231
1223
servers . AsArray ( ) . Add ( JsonUtils . SerializeToNode ( dnsServer ) ) ;
1232
1224
}
1233
- if ( wireguardEndpointDomain is not null )
1234
- {
1235
- var dnsServer = new DnsServer4Ray ( )
1236
- {
1237
- address = string . IsNullOrEmpty ( dNSItem ? . DomainDNSAddress ) ? Global . DomainDNSAddress . FirstOrDefault ( ) : dNSItem ? . DomainDNSAddress ,
1238
- skipFallback = true ,
1239
- domains = new ( ) { wireguardEndpointDomain }
1240
- } ;
1241
- servers . AsArray ( ) . Insert ( 0 , JsonUtils . SerializeToNode ( dnsServer ) ) ;
1242
- }
1243
1225
}
1244
1226
return await Task . FromResult ( 0 ) ;
1245
1227
}
0 commit comments