gogo / letmegrpc

[maintainer wanted] generates a web form gui from a grpc specification
BSD 3-Clause "New" or "Revised" License
421 stars 48 forks source link

Introduce flag that allows listening on an arbitrary interface. #16

Closed ivucica closed 9 years ago

ivucica commented 9 years ago

Care is taken that the old behavior which uses the --port flag is preserved. If the --port flag does not have the default, empty value, then its value is used for the new --httpaddr flag, prefixed with 127.0.0.1:.

(Strictly speaking, if localhost does not resolve to 127.0.0.1, then the behavior is not identical.)

Fixes gogo/letmegrpc#15.

awalterschulze commented 9 years ago

If you find you need more customization power please see https://github.com/gogo/letmegrpc#customization But this change seems small enough

ivucica commented 9 years ago

This seemed like one of those things one would want to have in the 'default' tool. :-)

awalterschulze commented 9 years ago

cool :)