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 6, 2024
1 parent dd194bd commit c00069c
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 @@ -6287,8 +6287,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 c00069c

Please sign in to comment.