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
gajim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
195
Issues
195
List
Boards
Labels
Service Desk
Milestones
Merge Requests
21
Merge Requests
21
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim
Commits
b7568582
Commit
b7568582
authored
Nov 09, 2014
by
Yann Leboulanger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warn user when custom hostname is wrong. Fixes
#7489
parent
ccf5baad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
src/common/connection.py
src/common/connection.py
+14
-4
No files found.
src/common/connection.py
View file @
b7568582
...
...
@@ -1136,10 +1136,20 @@ def connect(self, data=None):
else
:
use_custom
=
gajim
.
config
.
get_per
(
'accounts'
,
self
.
name
,
'use_custom_host'
)
custom_h
=
gajim
.
config
.
get_per
(
'accounts'
,
self
.
name
,
'custom_host'
)
custom_p
=
gajim
.
config
.
get_per
(
'accounts'
,
self
.
name
,
'custom_port'
)
if
use_custom
:
custom_h
=
gajim
.
config
.
get_per
(
'accounts'
,
self
.
name
,
'custom_host'
)
custom_p
=
gajim
.
config
.
get_per
(
'accounts'
,
self
.
name
,
'custom_port'
)
try
:
helpers
.
idn_to_ascii
(
custom_h
)
except
Exception
:
gajim
.
nec
.
push_incoming_event
(
InformationEvent
(
None
,
conn
=
self
,
level
=
'error'
,
pri_txt
=
_
(
'Wrong Custom Hostname'
),
sec_txt
=
'Wrong custom hostname "%s". Ignoring it.'
\
%
custom_h
))
use_custom
=
False
# create connection if it doesn't already exist
self
.
connected
=
1
...
...
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