-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qml, proxy: Allow IPv6 and move out UI validation
Allowed to configure the proxy with an IPv6 address and moved the validation out from the UI/ control to the node interface.
- Loading branch information
1 parent
c117acc
commit 0e181eb
Showing
6 changed files
with
52 additions
and
33 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,9 @@ | |
#include <tuple> | ||
#include <vector> | ||
|
||
static const char DEFAULT_PROXY_HOST[] = "127.0.0.1"; | ||
static constexpr uint16_t DEFAULT_PROXY_PORT = 9050; | ||
|
||
class BanMan; | ||
class CFeeRate; | ||
class CNodeStats; | ||
|
@@ -268,6 +271,8 @@ class Node | |
//! accessible across processes. | ||
virtual node::NodeContext* context() { return nullptr; } | ||
virtual void setContext(node::NodeContext* context) { } | ||
virtual bool validateProxyAddress(const std::string ipAddress) = 0; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
pablomartin4btc
Author
Contributor
|
||
virtual std::string defaultProxyAddress() = 0; | ||
}; | ||
|
||
//! Return implementation of Node interface. | ||
|
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
From what I understand, we should not be making any changes to code outside of the qml folder. So we should keep validation in UI controllers.