Do you want the application to accept incoming network connection?

前端 未结 3 545
陌清茗
陌清茗 2021-01-12 18:11

I have two C binaries which tries to open network connection for communication.

This is for external communication. When i run that for the first time, OS X\' firew

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-12 19:04

    I was trying to apply this solution to fix python as used by Arduino OTA, I found another solution describing self-signing the app that stated $(which python) as the file path to sign, but in my case that resolved to /usr/bin/python. Self-signing this not only required I drop to Rootless mode to allow writing to /usr/bin, but when I went back and tested it, python was STILL asking for permission to allow incoming connections!

    The correct python file to self-sign is in fact (in my case at least) /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app

    Once I self-signed this correct file path, the Arduino OTA process no longer required me clicking allow incoming connections - Hoorah!

    Hope that helps someone.

提交回复
热议问题