Skip to content

Commit

Permalink
v1.23.5 (#55)
Browse files Browse the repository at this point in the history
* ci: rename VirusTotal

* ci(virusTotal): enable update_release_body

* refactor(dns): remove unused interface fragment of servers
  • Loading branch information
igoogolx authored Jan 5, 2025
1 parent c49d599 commit 5ce5ade
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
uses: crazy-max/ghaction-virustotal@v4
with:
vt_api_key: ${{ secrets.VT_API_KEY }}
update_release_body: true
files: |
.zip$
.gz$
16 changes: 4 additions & 12 deletions internal/cfg/distribution/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,26 @@ func NewDnsDistribution(
dd := DnsDistribution{}

//Boost
var bootDnsServers []string
for _, server := range bootDns {
bootDnsServers = append(bootDnsServers, server+"#"+defaultInterfaceName)
}
boostDnsClient, err := resolver.New(bootDnsServers, defaultInterfaceName, func() (C.Proxy, error) {
boostDnsClient, err := resolver.New(bootDns, defaultInterfaceName, func() (C.Proxy, error) {
return conn.GetProxy(constants.PolicyDirect)
}, disableCache)
if err != nil {
return DnsDistribution{}, err
}
dd.Boost = SubDnsDistribution{
Client: boostDnsClient,
Addresses: bootDnsServers,
Addresses: bootDns,
}

//Local
var localDnsServers []string
for _, server := range localDns {
localDnsServers = append(localDnsServers, server+"#"+defaultInterfaceName)
}
localDnsClient, err := resolver.New(localDnsServers, defaultInterfaceName, func() (C.Proxy, error) {
localDnsClient, err := resolver.New(localDns, defaultInterfaceName, func() (C.Proxy, error) {
return conn.GetProxy(constants.PolicyDirect)
}, disableCache)
if err != nil {
return DnsDistribution{}, err
}
dd.Local = SubDnsDistribution{
Addresses: localDnsServers,
Addresses: localDns,
Client: localDnsClient,
}

Expand Down

0 comments on commit 5ce5ade

Please sign in to comment.