switch the default $debian_url to use the Debian CDN mirror address.
The CDN checks your IP and uses the Max-Mind geoIP DB to determine your location and then uses your local country Debian Mirror, or if your local country doesn't have a debian mirror, it uses the local continent. It automatically checks and prunes dead mirrors. the technology for the Debian CDN setup is still improving, I believe that ASN-number associations are the next step to attempt to make more informed, finer-grained choices. This is more useful than using ftp.debian.org because that is just a round-robin DNS entry that could get you any mirror anywhere.
This commit is contained in:
parent
2ee70ab5e0
commit
bb03c32b45
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class apt {
|
|||
}
|
||||
|
||||
$debian_url = $apt_debian_url ? {
|
||||
'' => 'http://ftp.debian.org/debian/',
|
||||
'' => 'http://cdn.debian.net/debian/',
|
||||
default => "${apt_debian_url}",
|
||||
}
|
||||
$security_url = $apt_security_url ? {
|
||||
|
|
Loading…
Reference in a new issue