Add detection of vpn protocol
My company uses TCP for the VPN protocol. This code seems to work to have this detected from the ovpn config file for me so I assume it also works for UDP VPNs.
Disclaimer: I have never written rust before and I have no idea what I'm doing.
Disclaimer: I have never written rust before and I have no idea what I'm doing.
Don't worry, that's how everyone starts!
I'll add some small suggestions, but overall it's good.
Sorry I pushed this and then got busy. I have a colleague trying out these changes now I've implemented your suggestions.
The changes seem to work fine outside of the current commit not compiling without fixing the compilation issue in config.rs. I made a pull request to fix that.