Skip to content

Commit

Permalink
Changed to use --allowed-ips
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaakko Heusala committed Feb 8, 2025
1 parent 4ddd808 commit 7dd7eeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wg-discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Usage example:
sudo python3 wg_endpoint_service.py --wg-interface wg0 --port 51820 \
--allowed-source-ips 10.220.0.19,10.220.0.25 --use-sudo --user nobody --group nogroup
--allowed-ips 10.220.0.19,10.220.0.25 --use-sudo --user nobody --group nogroup
"""

import http.server
Expand Down Expand Up @@ -212,7 +212,7 @@ def parse_args():
parser.add_argument('--bind-ip', default=None,
help='IP address to bind the HTTP server to (default: IP of the WG interface)')
parser.add_argument('--port', type=int, default=51820, help='Port number for the HTTP server (default: 51820)')
parser.add_argument('--allowed-source-ips', default='',
parser.add_argument('--allowed-ips', default='',
help='Comma-separated list of allowed source IP addresses (default: empty, will add bind IP automatically)')
parser.add_argument('--use-sudo', action='store_true', help='Use sudo when running wg commands (default: False)')
parser.add_argument('--user', default='', help='Username to drop privileges to (optional)')
Expand Down

0 comments on commit 7dd7eeb

Please sign in to comment.