Repository navigation
Commit 74f5d25
Fall back to localhost when the client IP probe is denied
_get_client_ip_for_server opens a UDP socket to learn which local
address routes to the server. AppArmor or a sandbox can refuse to
create that socket, which raised outside the existing try block. It
now logs a warning and returns 127.0.0.1, as it already did when the
connect failed. The bare except is narrowed to OSError.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 9c14262 commit 74f5d25
1 file changed
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
73 | 83 | | |
74 | 84 | | |
75 | | - | |
76 | | - | |
77 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
78 | 89 | | |
79 | 90 | | |
80 | | - | |
81 | 91 | | |
82 | 92 | | |
83 | 93 | | |
| |||
0 commit comments