mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-08 00:34:57 +03:00
v4.03-9411-rtm
This commit is contained in:
@ -108,7 +108,7 @@
|
||||
#define CEDAR_VER 403
|
||||
|
||||
// Build Number
|
||||
#define CEDAR_BUILD 9408
|
||||
#define CEDAR_BUILD 9411
|
||||
|
||||
// Beta number
|
||||
//#define BETA_NUMBER 3
|
||||
@ -129,10 +129,10 @@
|
||||
// Specifies the build date
|
||||
#define BUILD_DATE_Y 2014
|
||||
#define BUILD_DATE_M 1
|
||||
#define BUILD_DATE_D 4
|
||||
#define BUILD_DATE_HO 19
|
||||
#define BUILD_DATE_MI 10
|
||||
#define BUILD_DATE_SE 55
|
||||
#define BUILD_DATE_D 7
|
||||
#define BUILD_DATE_HO 4
|
||||
#define BUILD_DATE_MI 51
|
||||
#define BUILD_DATE_SE 30
|
||||
|
||||
// Tolerable time difference
|
||||
#define ALLOW_TIMESTAMP_DIFF (UINT64)(3 * 24 * 60 * 60 * 1000)
|
||||
|
@ -5449,47 +5449,6 @@ bool ServerDownloadSignature(CONNECTION *c, char **error_detail_str)
|
||||
|
||||
*error_detail_str = "HTTP_ROOT";
|
||||
|
||||
if (s != NULL && s->UseWebTimePage)
|
||||
{
|
||||
// Generate a page that shows the current time as the top page automatically
|
||||
BUF *b = ReadDump("|time.htm");
|
||||
|
||||
if (b != NULL)
|
||||
{
|
||||
char *src = ZeroMalloc(b->Size + 1);
|
||||
UINT dst_size = b->Size * 2 + 64;
|
||||
char *dst = ZeroMalloc(dst_size);
|
||||
char host[MAX_PATH];
|
||||
char portstr[64];
|
||||
char now_str[MAX_PATH];
|
||||
|
||||
GetDateTimeStr64(now_str, sizeof(now_str), LocalTime64());
|
||||
|
||||
GetMachineName(host, sizeof(host));
|
||||
ToStr(portstr, c->FirstSock->LocalPort);
|
||||
|
||||
Copy(src, b->Buf, b->Size);
|
||||
ReplaceStrEx(dst, dst_size, src,
|
||||
"$HOST$", host, false);
|
||||
ReplaceStrEx(dst, dst_size, dst,
|
||||
"$PORT$", portstr, false);
|
||||
ReplaceStrEx(dst, dst_size, dst,
|
||||
"$NOW$", now_str, false);
|
||||
|
||||
FreeHttpHeader(h);
|
||||
h = NewHttpHeader("HTTP/1.1", "202", "OK");
|
||||
AddHttpValue(h, NewHttpValue("Content-Type", HTTP_CONTENT_TYPE4));
|
||||
AddHttpValue(h, NewHttpValue("Connection", "Keep-Alive"));
|
||||
AddHttpValue(h, NewHttpValue("Keep-Alive", HTTP_KEEP_ALIVE));
|
||||
PostHttp(c->FirstSock, h, dst, StrLen(dst));
|
||||
|
||||
Free(src);
|
||||
Free(dst);
|
||||
|
||||
FreeBuf(b);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (is_free == false)
|
||||
{
|
||||
|
@ -2125,10 +2125,6 @@ bool ExecuteHamcoreExe(char *name)
|
||||
// Show the Easter Egg
|
||||
void ShowEasterEgg(HWND hWnd)
|
||||
{
|
||||
ExecuteHamcoreExe("|egg1.exe");
|
||||
ExecuteHamcoreExe("|egg2.exe");
|
||||
ExecuteHamcoreExe("|egg3.exe");
|
||||
ShellExecute(hWnd, "open", "http://www.softether.co.jp/jp/special/vpn3egg/", NULL, NULL, SW_SHOW);
|
||||
}
|
||||
|
||||
void KakushiThread(THREAD *thread, void *param)
|
||||
|
Reference in New Issue
Block a user