SSRFGuardedDialContext tried each address of a name in turn with a fresh 10 s, so a name resolving to thousands of unanswering addresses held a dial (and the caller's goroutine) for hours; a node can choose such a name for itself. The whole call now shares one 10 s budget, divided over the remaining addresses with net.Dialer's 2 s floor. Multi-address DNS answers cannot be produced in a unit test here, so no test reaches it. |
||
|---|---|---|
| .. | ||
| common | ||
| cronspec | ||
| crypto | ||
| json_util | ||
| ldap | ||
| link | ||
| maskcompat | ||
| netproxy | ||
| netsafe | ||
| random | ||
| reflect_util | ||
| sys | ||
| totp | ||
| version | ||
| wirecodec | ||
| wireguard | ||