>Windows 10 built-in L2tp connection fails.
It is VPN Server side problem.
https://www.vpnusers.com/viewtopic.php?f=15&t=68215
Stable Edition:
The path separator of "hamcore.se2" for VPN4.0 (VER4.38, BUILD 9760) is \ .
Developer Edition:
The path separator of "hamcore.se2" for VPN5.02 is /.
Maybe developer made a mistake in trying to change the path separator from \ to /.
Access to the hamcore.se2 archive seems to be a bug.
By changing the source code below, it would work.
<<< FileIO.c >>>
Code: Select all
// Top of Replace on APR.1, 2023
wchar_t * UniStrReplW(wchar_t *src, wchar_t c, wchar_t newc) {
for (; *src; src++) {
if (*src == c) {
*src = newc;
}
}
return (wchar_t *)src;
}
// Bottom of Replace on APR.1, 2023
IO *FileOpenExW(wchar_t *name, bool write_mode, bool read_lock)
{
wchar_t tmp[MAX_SIZE];
// Validate arguments
if (name == NULL)
{
return NULL;
}
InnerFilePathW(tmp, sizeof(tmp), name);
if (name[0] == L'|')
{
Debug("_____ FileOpenExW() |1 ReadHamcoreW() name =%S\n", name);
IO *o = ZeroMalloc(sizeof(IO));
name++;
// Top of Replace "\" with "/" on APR.1, 2023
wchar_t name2[MAX_SIZE];
UniStrCpy(name2, sizeof(name2), name);
UniStrReplW(name2, L'\\', L'/');
// Bottom of Replace "\" with "/" on APR.1, 2023
UniStrCpy(o->NameW, sizeof(o->NameW), name2); // path separator / is used
UniToStr(o->Name, sizeof(o->Name), o->NameW);
o->HamMode = true;
o->HamBuf = ReadHamcoreW(name2); // path separator / is used
Debug("_____ FileOpenExW() |2 ReadHamcoreW() o->Name =%s, o->HamBuf =%u\n", o->Name, o->HamBuf);
if (o->HamBuf == NULL)
{
Free(o);
return NULL;
}
return o;
}
else
{
Debug("_____ FileOpenExW() 3 FileOpenInnerW() tmp =%S\n", tmp);
return FileOpenInnerW(tmp, write_mode, read_lock);
}
}