aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-11-24 07:17:50 +0000
committerGravatar Sadie Powell2021-11-24 07:17:50 +0000
commit2ec53e10ee5325df12586c72471efabb07cb9d70 (patch)
tree7f06c35178be0c65048d9f2ff30b73b2bebb36a5 /src/users.cpp
parentDon't allow routing INFO to remote servers. (diff)
parentMake parsing websocket proxy headers more robust. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp39
1 files changed, 22 insertions, 17 deletions
diff --git a/src/users.cpp b/src/users.cpp
index f96c95a9d..7d91de2b3 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1218,9 +1218,13 @@ const std::string& FakeUser::GetFullRealHost()
ConnectClass::ConnectClass(std::shared_ptr<ConfigTag> tag, char t, const std::vector<std::string>& masks)
: config(tag)
- , type(t)
- , name("unnamed")
, hosts(masks)
+ , name("unnamed")
+ , type(t)
+ , fakelag(true)
+ , maxconnwarn(true)
+ , resolvehostnames(true)
+ , uniqueusername(false)
{
}
@@ -1255,25 +1259,26 @@ ConnectClass::ConnectClass(std::shared_ptr<ConfigTag> tag, char t, const std::ve
void ConnectClass::Update(const std::shared_ptr<ConnectClass> src)
{
+ commandrate = src->commandrate;
config = src->config;
- type = src->type;
fakelag = src->fakelag;
- name = src->name;
- registration_timeout = src->registration_timeout;
- hosts = src->hosts;
- pingtime = src->pingtime;
- softsendqmax = src->softsendqmax;
hardsendqmax = src->hardsendqmax;
- recvqmax = src->recvqmax;
- penaltythreshold = src->penaltythreshold;
- commandrate = src->commandrate;
- maxlocal = src->maxlocal;
- maxglobal = src->maxglobal;
- maxconnwarn = src->maxconnwarn;
- maxchans = src->maxchans;
+ hosts = src->hosts;
limit = src->limit;
- resolvehostnames = src->resolvehostnames;
- ports = src->ports;
+ maxchans = src->maxchans;
+ maxconnwarn = src->maxconnwarn;
+ maxglobal = src->maxglobal;
+ maxlocal = src->maxlocal;
+ name = src->name;
password = src->password;
passwordhash = src->passwordhash;
+ penaltythreshold = src->penaltythreshold;
+ pingtime = src->pingtime;
+ ports = src->ports;
+ recvqmax = src->recvqmax;
+ registration_timeout = src->registration_timeout;
+ resolvehostnames = src->resolvehostnames;
+ softsendqmax = src->softsendqmax;
+ type = src->type;
+ uniqueusername = src->uniqueusername;
}