mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 13:04:02 +03:00
Remove mentioning of DC overrides
This commit is contained in:
@@ -2,12 +2,10 @@ package dc
|
||||
|
||||
type dcView struct {
|
||||
publicConfigs dcAddrSet
|
||||
ownConfigs dcAddrSet
|
||||
}
|
||||
|
||||
func (d dcView) getV4(dc int) []Addr {
|
||||
addrs := d.publicConfigs.getV4(dc)
|
||||
addrs = append(addrs, d.ownConfigs.getV4(dc)...)
|
||||
addrs = append(addrs, defaultDCAddrSet.getV4(dc)...)
|
||||
|
||||
return addrs
|
||||
@@ -15,7 +13,6 @@ func (d dcView) getV4(dc int) []Addr {
|
||||
|
||||
func (d dcView) getV6(dc int) []Addr {
|
||||
addrs := d.publicConfigs.getV6(dc)
|
||||
addrs = append(addrs, d.ownConfigs.getV6(dc)...)
|
||||
addrs = append(addrs, defaultDCAddrSet.getV6(dc)...)
|
||||
|
||||
return addrs
|
||||
|
||||
@@ -117,7 +117,7 @@ type ProxyOpts struct {
|
||||
// DCOverrides defines a set of IP addresses that should be used
|
||||
// with a higher priority to those that are calculated somehow by mtg.
|
||||
//
|
||||
// This is an optional setting
|
||||
// OBSOLETE and DEPRECATED. Ignored.
|
||||
DCOverrides map[int][]string
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user