file transfer port is kept inthe config
This commit is contained in:
parent
3aa9a9a830
commit
9aae8dadbb
|
@ -121,6 +121,7 @@ class Config:
|
||||||
'print_ichat_every_foo_minutes': [opt_int, 5], # default is every 5 minutes
|
'print_ichat_every_foo_minutes': [opt_int, 5], # default is every 5 minutes
|
||||||
'confirm_close_muc': [opt_bool, True], # confirm closing MUC window
|
'confirm_close_muc': [opt_bool, True], # confirm closing MUC window
|
||||||
'notify_on_file_complete': [opt_bool, True], # notif. on file complete
|
'notify_on_file_complete': [opt_bool, True], # notif. on file complete
|
||||||
|
'file_transfers_port': [opt_int, 28011], # port, used for file transfers
|
||||||
}
|
}
|
||||||
|
|
||||||
__options_per_key = {
|
__options_per_key = {
|
||||||
|
|
|
@ -494,7 +494,7 @@ class Connection:
|
||||||
def send_socks5_info(self, file_props):
|
def send_socks5_info(self, file_props):
|
||||||
if type(self.peerhost) != tuple:
|
if type(self.peerhost) != tuple:
|
||||||
return
|
return
|
||||||
port = 8011
|
port = gajim.config.get('file_transfers_port')
|
||||||
sha_str = self._get_sha(file_props['sid'], file_props['sender'],
|
sha_str = self._get_sha(file_props['sid'], file_props['sender'],
|
||||||
file_props['receiver'])
|
file_props['receiver'])
|
||||||
file_props['sha_str'] = sha_str
|
file_props['sha_str'] = sha_str
|
||||||
|
|
Loading…
Reference in New Issue