Skip to content

Commit

Permalink
Fix ip size
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpond committed Jan 11, 2020
1 parent b43e53d commit 172b4e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified chrome_elf.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions src/BlockTheSpot.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
Expand Down Expand Up @@ -65,7 +65,7 @@
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>false</GenerateDebugInformation>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ModuleDefinitionFile>chrome_elf.def</ModuleDefinitionFile>
</Link>
</ItemDefinitionGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ bool init_DNS () {
}
pSrvList = (PIP4_ARRAY)LocalAlloc (LPTR, sizeof (IP4_ARRAY));
if (nullptr != pSrvList) {
char DNS_IP[256];
char DNS_IP[INET_ADDRSTRLEN];
GetPrivateProfileString ("Config",
"AdGuardDNS_IP",
"176.103.130.134",
DNS_IP,
256,
INET_ADDRSTRLEN,
configFile);
// https://docs.microsoft.com/en-us/windows/win32/api/ws2tcpip/nf-ws2tcpip-inetptonw
if (1 == InetPton (AF_INET,
Expand Down

0 comments on commit 172b4e8

Please sign in to comment.