lakinduakash / linux-wifi-hotspot

Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line interface. It is also able to create a hotspot using the same wifi card which is connected to an AP already ( Similar to Windows 10).
BSD 2-Clause "Simplified" License
3.15k stars 294 forks source link

Gateway option in the GUI tool passes wrong argument #273

Closed ToxicMushroom closed 1 year ago

ToxicMushroom commented 1 year ago

Describe the bug The gateway option in the wihotspot-gui passes --gateway to create_ap, this is not an existing option and should probably be -g.

To Reproduce Steps to reproduce the behavior:

  1. Start a hotspot with wihotspot-gui with a custom gateway
  2. See error in logs

Expected behavior Gateway option is passed correctly with -g

Screenshots image

Desktop (please complete the following information):

Additional context N/A

floholz commented 1 year ago

Indeed, it seems that the wrong option '--gateway' is passed from the gui. The correct option would be '-g'.

The corresponding code can be found here: https://github.com/lakinduakash/linux-wifi-hotspot/blob/dd3c72ef4a5e9682ad3a18df3544dac4ec372a1a/src/ui/h_prop.c#L145