Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
poezio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
204
Issues
204
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poezio
poezio
Commits
fe4dd60b
Commit
fe4dd60b
authored
Oct 16, 2010
by
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix how we get the domain to connect to
parent
db270415
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/connection.py
src/connection.py
+5
-1
No files found.
src/connection.py
View file @
fe4dd60b
...
...
@@ -50,5 +50,9 @@ class Connection(sleekxmpp.ClientXMPP):
def
start
(
self
):
# TODO, try multiple servers
if
self
.
connect
((
config
.
get
(
'server'
,
'anon.louiz.org'
),
config
.
get
(
'port'
,
5222
))):
if
self
.
anon
:
domain
=
config
.
get
(
'server'
,
'anon.louiz.org'
)
else
:
_
,
domain
=
config
.
get
(
'jid'
,
''
).
split
(
'@'
,
1
)
if
self
.
connect
((
domain
,
config
.
get
(
'port'
,
5222
))):
self
.
process
(
threaded
=
True
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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