Commit fcda7ba
authored
plugins/radius: avoid unnecessary own address lookups (#631)
rc_own_ipaddress() lookup in rc_find_server() is only needed when client/server pair is specified in "servers" file.
Otherwise it triggers DNS lookup via gethostbyname() each plugin call.
Signed-off-by: [anp/hsw] <sysop@880.ru>1 parent f2a9109 commit fcda7ba
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
| 467 | + | |
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
| |||
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
487 | | - | |
488 | | - | |
489 | 487 | | |
490 | 488 | | |
491 | 489 | | |
| |||
512 | 510 | | |
513 | 511 | | |
514 | 512 | | |
515 | | - | |
| 513 | + | |
516 | 514 | | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
517 | 518 | | |
518 | 519 | | |
519 | 520 | | |
| |||
0 commit comments