Skip to content

Build from source on Windows completely broken? #2031

@siddharth-narayan

Description

@siddharth-narayan

Are you using SoftEther VPN 5.x?

  • Yes, I'm using SoftEther VPN 5.x, not 4.x.

Version

Latest commit

Component

VPN Client

Operating system & version

Windows 11 Home VM

Architecture or Hardware model

x86_64

Steps to reproduce

I built from source and ran vpnclient using the steps in BUILD_WINDOWS.md. Running vpnclient.exe gives this error:
"The service related operation commands can only operate on Windows NT / 2000 / XP / Server 2003 / Vista / Server 2008. They do not operate on Windows 98 / Me."

This issue comes from line 4262 in src/Mayaqua/Microsoft.c, where ms->IsNt is false instead of what it should be (true)

I checked the stable version, and in there ms->IsNt is correctly set to true in MsInit in the same file.

Removing the if condition, vpnclient.exe continues as normal but fails to run NicCreate. (This part might be my fault and not a bug)

✔️ Expected Behavior

vpnclient.exe should not complain about not running on a supported Windows when running a supported Windows

❌ Actual Behavior

vpnclient complained

Anything else?

(ms->IsNt == false))

https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/blob/556bc0afe2333b7f2ea8f6f91fce90e53605b992/src/Mayaqua/Microsoft.c#L15035

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions