Well, this wouldn't work obviously. If it's a string, then you need specificName && strcmp(specificName, "") == 0 or specificName && strlen(specificName) > 0, but I would replace it with a BOOL. See !57 (comment 3160916186)
BTW, the empty
""name here tells Lanemu to search for the preferred interface (searches for "Lanemu-OAS" ifTapDriverregistry value is1or "Lanemu-V9" if value is not1/ doesn't exist).
Perhaps we should change this empty const char* to BOOL (i.e. exactName) in findTapDevice?
If that's too complicated, you can just leave it at 5 seconds, just leave a note on why you did that.
Maybe this is an unnecessary complication—what if we run openTun in a loop, say, with a 1-second delay? And when openTun succeeds, exit the loop?
Nikolay Borodin (758c5bd3) at 15 Mar 17:41
Updated flatlaf dependency 3.7 -> 3.7.1
What if the driver is installed but, for some reason, the app wasn't able to open it? Is this handled in some way?
I would like the interface to be named Lanemu or such regardless of which driver is used. The reason is that other applications may also use these drivers, so the priority is to search for a driver with that name.
Why do you have to wait 5 seconds?
Nikolay Borodin (bd9c9c9b) at 10 Mar 13:38
Include platform-specific artifacts only on release build
Nikolay Borodin (76f1182b) at 10 Mar 12:59
Switched run scripts to bash
Nikolay Borodin (b5d4a545) at 10 Mar 12:53
Make shell scripts and .desktop file executable
Moved artifact files into a single Lanemu folder.
Created additional jobs to download OpenJDK and make separate builds for Windows XP-11 and Linux.
Made a Lanemu.desktop file that launches Lanemu-run0 / Lanemu-pkexec and copies the logo icon to one of $XDG_DATA_DIRS folders.
Nikolay Borodin (f2d6e6e8) at 10 Mar 12:50
Merge branch 'refactor-ci' into 'main'
... and 1 more commit
Nikolay Borodin (c5be20a2) at 09 Mar 22:58
Updated commons-logging dependency 1.3.5 -> 1.3.6
Nikolay Borodin (4d2c1aa1) at 28 Feb 20:03
Check for access.publicKey property in headless mode
Nikolay Borodin (42ae07ad) at 23 Feb 12:34
Updated OpenJDK-downloader dependency
Nikolay Borodin (141cc45d) at 23 Feb 11:52
Updated README.md
line 54 is returning the java bat exit code if it can even run the bat then return 1
Got it. Nvm.