theinvisible / openfortigui

VPN-GUI to connect to Fortigate-Hardware, based on openfortivpn
https://hadler.me/linux/openfortigui/
GNU General Public License v3.0
492 stars 54 forks source link

Prevent the otp prompt from being buffered. #13

Closed carloslima closed 6 years ago

carloslima commented 7 years ago

Fixes #12

carloslima commented 7 years ago

It turns out that the prompt was being buffered.

I feel like the correct fix would be to call fflush(stdout) in openfortivpn/src/userinput.c:30 but that file is outside your repository and you already override http.c, so I did it there in the idea of causing the least amount of changes.