ao-data / albiondata-client

Distributed client for the Albion Online Data project.
https://www.albion-online-data.com/
MIT License
101 stars 30 forks source link

Fix/linux listen devices flag #113

Open VladRico opened 2 months ago

VladRico commented 2 months ago

This PR add logic when passing -l flag with command line on linux/darwin: ./albiondata-client -debug -l "enp6s0,notexist"

❯ ./albiondata-client -debug -l "enp6s0,notexist"
INFO[2024-06-29T13:38:05+02:00] Starting Albion Data Client, version:
INFO[2024-06-29T13:38:05+02:00] This is a third-party application and is in no way affiliated with Sandbox Interactive or Albion Online.
INFO[2024-06-29T13:38:05+02:00] Additional parameters can listed by calling this file with the -h parameter.
INFO[2024-06-29T13:38:05+02:00] Watching Albion
DEBU[2024-06-29T13:38:05+02:00] Interface with name: notexist not found, removing from list ...
DEBU[2024-06-29T13:38:05+02:00] Will listen to these devices: [enp6s0]
DEBU[2024-06-29T13:38:05+02:00] Starting listener (online: enp6s0:5056)
[...]

Tested on Linux 6.9.1-arch1-2, not tested on darwin

phendryx commented 2 months ago

These changes break the windows build.

VladRico commented 2 months ago

I tried to fix it. I don't have any windows OS here, please tell me if it fix the windows build

VladRico commented 2 months ago

Ok it builds on my github-workflow using your test-build.yml file