forked from gup4win/wingup
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support more sophisticated proxy settings #52
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,12 +75,20 @@ class GupExtraOptions : public XMLTool { | |
public: | ||
GupExtraOptions(const wchar_t * xmlFileName); | ||
const std::wstring & getProxyServer() const { return _proxyServer;}; | ||
long getPort() const { return _port;}; | ||
bool hasProxySettings() const {return ((!_proxyServer.empty()) && (_port != -1));}; | ||
void writeProxyInfo(const wchar_t *fn, const wchar_t *proxySrv, long port); | ||
void setProxyServer(const std::wstring& s) { _proxyServer = s; }; | ||
long getPort() const { return _port; }; | ||
void setPort(long l) { _port = l; }; | ||
bool hasProxySettings() const {return ((!_proxyServer.empty()) && (_port != -1)); }; | ||
void write(); | ||
const std::wstring& getAuth() const { return _proxyAuth; }; | ||
void setAuth(const std::wstring& s) { _proxyAuth = s; }; | ||
const std::wstring& getUserPass() const { return _proxyUserPass; }; | ||
void setUserPass(const std::wstring& s) { _proxyUserPass = s; }; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. User password shouldn't be stored into the xml file. |
||
|
||
private: | ||
std::wstring _proxyServer; | ||
std::wstring _proxyAuth; | ||
std::wstring _proxyUserPass; | ||
long _port = -1; | ||
}; | ||
|
||
|
@@ -94,7 +102,7 @@ class GupDownloadInfo : public XMLTool { | |
bool doesNeed2BeUpdated() const {return _need2BeUpdated;}; | ||
|
||
private: | ||
bool _need2BeUpdated; | ||
bool _need2BeUpdated = false; | ||
std::wstring _updateVersion; | ||
std::wstring _updateLocation; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,7 +146,7 @@ | |
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<ClCompile> | ||
<Optimization>Disabled</Optimization> | ||
<AdditionalIncludeDirectories>..\src\TinyXml;..\src\sha2;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this file modified? |
||
<AdditionalIncludeDirectories>$(ProjectDir)..\curl\builds\libcurl-vc15-$(LibrariesArchitecture)-$(Configuration)-dll-ipv6-sspi-schannel\include;..\src\TinyXml;..\src\sha2;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
<PreprocessorDefinitions>WIN32;TIXML_USE_STL;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | ||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> | ||
|
@@ -158,7 +158,7 @@ | |
</ClCompile> | ||
<Link> | ||
<AdditionalDependencies>libcurl_debug.lib;ZipLib.lib;zlib.lib;lzma.lib;bzip2.lib;comctl32.lib;shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||
<AdditionalLibraryDirectories>..\curl\builds\libcurl-vc15-x64-debug-dll-ipv6-sspi-schannel\lib;Bin\x64\Debug;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
<AdditionalLibraryDirectories>$(ProjectDir)..\curl\builds\libcurl-vc15-$(LibrariesArchitecture)-$(Configuration)-dll-ipv6-sspi-schannel\lib;Bin\x64\Debug;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
<GenerateDebugInformation>true</GenerateDebugInformation> | ||
<SubSystem>Windows</SubSystem> | ||
</Link> | ||
|
@@ -239,7 +239,7 @@ del ..\bin\GUP.ipdb</Command> | |
</Command> | ||
</PreBuildEvent> | ||
<ClCompile> | ||
<AdditionalIncludeDirectories>..\src\TinyXml;..\src\sha2;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
<AdditionalIncludeDirectories>$(ProjectDir)..\curl\builds\libcurl-vc15-$(LibrariesArchitecture)-$(Configuration)-dll-ipv6-sspi-schannel\include;..\src\TinyXml;..\src\sha2;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
<PreprocessorDefinitions>WIN32;TIXML_USE_STL;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||
<PrecompiledHeader> | ||
|
@@ -251,7 +251,7 @@ del ..\bin\GUP.ipdb</Command> | |
</ClCompile> | ||
<Link> | ||
<AdditionalDependencies>libcurl.lib;ZipLib.lib;zlib.lib;lzma.lib;bzip2.lib;comctl32.lib;shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||
<AdditionalLibraryDirectories>..\curl\builds\libcurl-vc15-x64-release-dll-ipv6-sspi-schannel\lib;Bin\x64\Release;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
<AdditionalLibraryDirectories>$(ProjectDir)..\curl\builds\libcurl-vc15-$(LibrariesArchitecture)-$(Configuration)-dll-ipv6-sspi-schannel\lib;Bin\x64\Release;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
<GenerateDebugInformation>false</GenerateDebugInformation> | ||
<SubSystem>Windows</SubSystem> | ||
<OptimizeReferences>true</OptimizeReferences> | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coding convention is not respected.