[GH-ISSUE #22] An ability to set listen address #12

Closed
opened 2026-10-13 21:12:27 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @tiaga on GitHub (Aug 21, 2024).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-exporter/issues/22

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'),
Originally created by @tiaga on GitHub (Aug 21, 2024). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-exporter/issues/22 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'), ```
Sign in to join this conversation.
No labels
bug
minor
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-exporter#12
No description provided.