aerogo / aero

:bullettrain_side: High-performance web server for Go (2016). New alpha (2024) with even better performance is currently in development at https://git.akyoto.dev/go/web
MIT License
572 stars 33 forks source link

Option for Host IP configuration #17

Open ansarizafar opened 4 years ago

ansarizafar commented 4 years ago

Aero provides an option to set Port but there is no configuration setting for Host IP. Please provide an option for setting Host IP.

lkeix commented 3 years ago

Hi! I suggest a way to set Port by writing on program when developer run their application. For example:

// current application run method (r is value returned by aero.New())
r.Run()

// I suggested way. (port is string)
r.Run(port)
or
r.Run(":8080")

When I develop api using multiple port, I think the way is more comfortable.

eco747 commented 1 year ago

Port can be set with Config.http.port, but IP should be a great improvement, instead of localhost by default