1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-13 11:14:59 +03:00

v4.07-9448-rtm

This commit is contained in:
dnobori
2014-06-06 06:53:20 +09:00
parent 7839d2939e
commit 719ee999d6
333 changed files with 1412 additions and 346 deletions

View File

@ -1333,16 +1333,23 @@ char *BuildHttpLogStr(HTTPLOG *h)
b = NewBuf();
// URL generation
if (h->Port == 80)
if (StartWith(h->Path, "http://"))
{
Format(url, sizeof(url), "http://%s%s",
h->Hostname, h->Path);
StrCpy(url, sizeof(url), h->Path);
}
else
{
Format(url, sizeof(url), "http://%s:%u%s",
h->Hostname, h->Port, h->Path);
// URL generation
if (h->Port == 80)
{
Format(url, sizeof(url), "http://%s%s",
h->Hostname, h->Path);
}
else
{
Format(url, sizeof(url), "http://%s:%u%s",
h->Hostname, h->Port, h->Path);
}
}
AddLogBufToStr(b, "HttpMethod", h->Method);