Skip to content

Commit

Permalink
get_pingtime: set a lower value for preferred host
Browse files Browse the repository at this point in the history
to make it work under a fake-ip proxy
  • Loading branch information
laggardkernel committed Oct 16, 2024
1 parent eee437c commit 8748d8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/macports1.0/macports.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -6296,8 +6296,8 @@ proc macports::get_pingtime {host} {
variable preferred_hosts
foreach pattern $preferred_hosts {
if {[string match -nocase $pattern $host]} {
dict set host_cache $host 1
return 1
dict set host_cache $host 0.001
return 0.001
}
}
dict set host_cache $host 0
Expand Down

0 comments on commit 8748d8b

Please sign in to comment.