Skip to content

Commit c879698

Browse files
committed
Fix segfault under Mac OS by setting no_proxy=*
See python/cpython#74570 (comment)
1 parent 0be212d commit c879698

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

irrd/daemon/main.py

+5
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ def main():
108108

109109
def run_irrd(mirror_frequency: int, config_file_path: str, uid: Optional[int], gid: Optional[int]):
110110
terminated = False
111+
112+
if sys.platform == "darwin":
113+
logger.warning("Running on Mac OS, disabling proxy usage by setting no_proxy=*")
114+
os.environ["no_proxy"] = " * "
115+
111116
os.environ[ENV_MAIN_PROCESS_PID] = str(os.getpid())
112117
set_traceback_handler()
113118

0 commit comments

Comments
 (0)