mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 10:34:01 +03:00
Merge pull request #428 from 9seconds/auto-update-prio{
Change IP address set priority
This commit is contained in:
@@ -5,15 +5,19 @@ type dcView struct {
|
||||
}
|
||||
|
||||
func (d dcView) getV4(dc int) []Addr {
|
||||
addrs := d.publicConfigs.getV4(dc)
|
||||
var addrs []Addr
|
||||
|
||||
addrs = append(addrs, defaultDCAddrSet.getV4(dc)...)
|
||||
addrs = append(addrs, d.publicConfigs.getV4(dc)...)
|
||||
|
||||
return addrs
|
||||
}
|
||||
|
||||
func (d dcView) getV6(dc int) []Addr {
|
||||
addrs := d.publicConfigs.getV6(dc)
|
||||
var addrs []Addr
|
||||
|
||||
addrs = append(addrs, defaultDCAddrSet.getV6(dc)...)
|
||||
addrs = append(addrs, d.publicConfigs.getV6(dc)...)
|
||||
|
||||
return addrs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user