aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2022-09-01 18:44:07 +1000
committerAnthony Towns <aj@erisian.com.au>2022-09-01 20:53:57 +1000
commitd394156b99d6b9a99aedee78658310d169ca188d (patch)
treefb8a475398d43d7153754decf4895aaf79aa634d /src/net.h
parent9dccc3328eeaf9cd66518d812c878def5d014e36 (diff)
net: make CNode::m_permissionFlags const
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 0167078aa2..2cf334f8a9 100644
--- a/src/net.h
+++ b/src/net.h
@@ -336,6 +336,7 @@ public:
struct CNodeOptions
{
+ NetPermissionFlags permission_flags = NetPermissionFlags::None;
std::unique_ptr<i2p::sam::Session> i2p_sam_session = nullptr;
};
@@ -349,7 +350,7 @@ public:
const std::unique_ptr<TransportDeserializer> m_deserializer; // Used only by SocketHandler thread
const std::unique_ptr<const TransportSerializer> m_serializer;
- NetPermissionFlags m_permissionFlags{NetPermissionFlags::None}; // treated as const outside of fuzz tester
+ const NetPermissionFlags m_permissionFlags;
/**
* Socket used for communication with the node.