Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eta
gajim
Commits
bc78e35d
Commit
bc78e35d
authored
13 years ago
by
zimio
Browse files
Options
Downloads
Patches
Plain Diff
refactoring
parent
e4fa96cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/common/jingle_ft.py
+4
-5
4 additions, 5 deletions
src/common/jingle_ft.py
src/common/socks5.py
+421
-369
421 additions, 369 deletions
src/common/socks5.py
with
425 additions
and
374 deletions
src/common/jingle_ft.py
+
4
−
5
View file @
bc78e35d
...
...
@@ -24,7 +24,7 @@ import xmpp
from
jingle_content
import
contents
,
JingleContent
from
jingle_transport
import
JingleTransportICEUDP
,
JingleTransportSocks5
from
common
import
helpers
from
common.socks5
import
Socks5Receiver
,
Socks5Sender
from
common.socks5
import
Socks5Receiver
Client
,
Socks5Sender
Client
from
common.connection_handlers_events
import
FileRequestReceivedEvent
import
logging
...
...
@@ -419,9 +419,8 @@ class JingleFileTransfer(JingleContent):
if
self
.
weinitiate
:
gajim
.
socks5queue
.
idx
+=
1
idx
=
gajim
.
socks5queue
.
idx
sockobj
=
Socks5Sender
(
gajim
.
idlequeue
,
idx
,
sockobj
=
Socks5Sender
Client
(
gajim
.
idlequeue
,
idx
,
gajim
.
socks5queue
,
mode
=
'
client
'
,
_sock
=
None
,
host
=
str
(
streamhost_used
[
'
host
'
]),
port
=
int
(
streamhost_used
[
'
port
'
]),
...
...
@@ -429,8 +428,8 @@ class JingleFileTransfer(JingleContent):
connected
=
False
,
file_props
=
self
.
file_props
)
else
:
sockobj
=
Socks5Receiver
(
gajim
.
idlequeue
,
streamhost_used
,
sid
=
self
.
file_props
[
'
sid
'
],
mode
=
'
client
'
,
sockobj
=
Socks5Receiver
Client
(
gajim
.
idlequeue
,
streamhost_used
,
sid
=
self
.
file_props
[
'
sid
'
],
file_props
=
self
.
file_props
,
fingerprint
=
None
)
sockobj
.
proxy
=
True
sockobj
.
streamhost
=
streamhost_used
...
...
This diff is collapsed.
Click to expand it.
src/common/socks5.py
+
421
−
369
View file @
bc78e35d
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment