Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
197ae921
Commit
197ae921
authored
Nov 18, 2014
by
woogerboy21
Browse files
corrected invalid variable call & added log file debug information
parent
26f5110f
Changes
1
Hide whitespace changes
Inline
Side-by-side
servatrice/src/serversocketinterface.cpp
View file @
197ae921
...
@@ -120,7 +120,8 @@ bool ServerSocketInterface::initSession()
...
@@ -120,7 +120,8 @@ bool ServerSocketInterface::initSession()
//allow unlimited number of connections from the trusted sources
//allow unlimited number of connections from the trusted sources
QString
trustedSources
=
settingsCache
->
value
(
"server/trusted_sources"
,
"127.0.0.1,::1"
).
toString
();
QString
trustedSources
=
settingsCache
->
value
(
"server/trusted_sources"
,
"127.0.0.1,::1"
).
toString
();
if
(
trustedSources
.
contains
(
address
.
toString
(),
Qt
::
CaseInsensitive
))
if
(
trustedSources
.
contains
(
socket
->
peerAddress
().
toString
(),
Qt
::
CaseInsensitive
))
qDebug
()
<<
"Allowing user from trusted source: "
<<
socket
->
peerAddress
().
toString
();
return
true
;
return
true
;
int
maxUsers
=
servatrice
->
getMaxUsersPerAddress
();
int
maxUsers
=
servatrice
->
getMaxUsersPerAddress
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment