MCPcopy Create free account
hub / github.com/Windscribe/Desktop-App / isProtocol

Function isProtocol

src/windscribe-cli/cliarguments.cpp:10–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}
9
10static bool isProtocol(const QString &str)
11{
12 QString sub = str.split(':').first();
13
14 if (sub == "wireguard" || sub == "ikev2" || sub == "udp" || sub == "tcp" || sub == "stealth" || sub == "wstunnel") {
15 return true;
16 }
17 return false;
18}
19
20static QString getProtocol(const QString &str)
21{

Callers 2

parseConnectMethod · 0.85
parsePortsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected