-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NAS-128845 / 24.10 / Do not render all IPv4 addresses in Web UI URLs …
…list if :: is in the listen address list, but `0.0.0.0` is not (#14154) * Refresh Web UI URLs displayed in CLI on settings update * Do not render all IPv4 addresses in Web UI URLs list if `::` is in the listen address list, but `0.0.0.0` is not * Address feedback
- Loading branch information
1 parent
b9d3e8d
commit 0fd70a7
Showing
4 changed files
with
27 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import contextlib | ||
import signal | ||
|
||
import psutil | ||
|
||
from middlewared.service import Service, private | ||
|
||
|
||
class SystemService(Service): | ||
@private | ||
def reload_cli(self): | ||
for process in psutil.process_iter(['pid', 'cmdline']): | ||
cmdline = process.cmdline() | ||
if len(cmdline) >= 2 and cmdline[1] == '/usr/bin/cli': | ||
with contextlib.suppress(Exception): | ||
process.send_signal(signal.SIGUSR1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters