amnezia-vpn / amneziawg-exporter

amneziawg-exporter
GNU General Public License v3.0
8 stars 2 forks source link

An ability to set listen address #22

Closed tiaga closed 2 months ago

tiaga commented 2 months ago

Add an ability to set listen IP address through AWG_EXPORTER_LISTEN_ADDRESS, set it to 127.0.0.1 by default.

P.S. probably it'll be like:

start_http_server(self.config['http_port'], addr=self.config['listen_address'], registry=self.registry)

...

exporter_config = {
...
        'listen_address': config('AWG_EXPORTER_LISTEN_ADDRESS', default='127.0.0.1'),