Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gin osx firewall issue #12

Closed
Netherdrake opened this issue Feb 7, 2014 · 8 comments
Closed

gin osx firewall issue #12

Netherdrake opened this issue Feb 7, 2014 · 8 comments

Comments

@Netherdrake
Copy link

Hi,

I started using gin today, but it keeps invoking OSX firewall each time the app binary is recompiled (in /gin-bin).

Do you want the application “gin-bin” to accept incoming network connections?

I checked if proxy is trying to bind on 0.0.0.0, but thats not the case. So I don't know why is it invoking the firewall popups.

@codegangsta
Copy link
Owner

hm. I haven't run into this issue before. Are you still able to reproduce this?

@Netherdrake
Copy link
Author

Yup, every time.

I just run gin on sample martini.Classic() helloworld app.

On Mon, Mar 3, 2014, at 05:35 PM, Jeremy Saenz wrote:

hm. I haven't run into this issue before. Are you still able to
reproduce this?

Reply to this email directly or [1]view it on GitHub.
[3516903__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwOTUxNjExM
iwiZGF0YSI6eyJpZCI6MjUxNDE4MzB9fQ==--32539489cf16de40e718e85eeec45d5d6c
a879b4.gif]

References

  1. gin osx firewall issue #12 (comment)

@codegangsta
Copy link
Owner

Is this a gin-specific thing? Or Go's net/http in general? In my tests it looks like the OSX firewall needs you to allow a binary to accept incoming net connections for any Go app using the net package.

@Netherdrake
Copy link
Author

Well, as long as you're serving on 0.0.0.0 firewall comes up. If hoever
its just 127.0.0.1 than its fine.

On Mon, Mar 3, 2014, at 05:55 PM, Jeremy Saenz wrote:

Is this a gin-specific thing? Or Go's net/http in general? In my
tests it looks like the OSX firewall needs you to allow a binary to
accept incoming net connections for any Go app using the net
package.

Reply to this email directly or [1]view it on GitHub.
[3516903__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwOTUxNzMxN
CwiZGF0YSI6eyJpZCI6MjUxNDE4MzB9fQ==--f4b054cc195648a72846f6fc8e9a4f2981
1405df.gif]

References

  1. gin osx firewall issue #12 (comment)

@codegangsta
Copy link
Owner

ah okay. I know that martini can change the host via the HOST environment variable. maybe we should allow gin to have a configurable host via arguments

@tamasd
Copy link

tamasd commented Apr 15, 2014

Same happened to me, because if your HOST environment variable is empty, the server is trying to bind to :3000, which needs permission from the firewall. The solution is to invoke gin like this: HOST="localhost" gin.

@codegangsta
Copy link
Owner

ah okay. Maybe we can set the host to localhost as the default instead.

On Tue, Apr 15, 2014 at 11:47 AM, Tamás Demeter-Haludka <
notifications@github.com> wrote:

Same happened to me, because if your HOST environment variable is empty,
the server is trying to bind to :3000, which needs permission from the
firewall. The solution is to invoke gin like this: HOST="localhost" gin.


Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-40519008
.

@Netherdrake
Copy link
Author

Yeah that should work.

On Tue, Apr 15, 2014, at 11:52 AM, Jeremy Saenz wrote:

ah okay. Maybe we can set the host to localhost as the default instead.

On Tue, Apr 15, 2014 at 11:47 AM, Tamás Demeter-Haludka <

notifications@github.com> wrote:

Same happened to me, because if your HOST environment variable is
empty,

the server is trying to bind to :3000, which needs permission from
the

firewall. The solution is to invoke gin like this: HOST="localhost"
gin.

Reply to this email directly or view it on
GitHub<#12 (comment)
08>

.

Reply to this email directly or [1]view it on GitHub.
[3516903__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxMzIwNzEzM
iwiZGF0YSI6eyJpZCI6MjUxNDE4MzB9fQ==--654c322f86939da828f3b71dac83296bd2
0863e8.gif]

References

  1. gin osx firewall issue #12 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants