Force reannounce to all trackers after meek bridges enabled
This commit is contained in:
parent
f3b17d4896
commit
2bd69b2681
3 changed files with 8 additions and 5 deletions
|
@ -835,9 +835,9 @@ class UiWebsocket(object):
|
|||
site.websockets.append(self)
|
||||
|
||||
# Update site content.json
|
||||
def actionSiteUpdate(self, to, address, check_files=False, since=None):
|
||||
def actionSiteUpdate(self, to, address, check_files=False, since=None, announce=False):
|
||||
def updateThread():
|
||||
site.update(check_files=check_files, since=since)
|
||||
site.update(announce=announce, check_files=check_files, since=since)
|
||||
self.response(to, "Updated")
|
||||
|
||||
site = self.server.sites.get(address)
|
||||
|
|
|
@ -42,7 +42,7 @@ class Loading
|
|||
button.addClass("loading")
|
||||
@wrapper.ws.cmd "configSet", ["tor_use_bridges", ""]
|
||||
@wrapper.ws.cmd "configSet", ["trackers_proxy", "tor"]
|
||||
@wrapper.ws.cmd "siteUpdate", @wrapper.site_info.address
|
||||
@wrapper.ws.cmd "siteUpdate", {address: @wrapper.site_info.address, announce: true}
|
||||
@wrapper.reloadIframe()
|
||||
return false
|
||||
line.after(button)
|
||||
|
|
|
@ -640,7 +640,10 @@ jQuery.extend( jQuery.easing,
|
|||
button.addClass("loading");
|
||||
_this.wrapper.ws.cmd("configSet", ["tor_use_bridges", ""]);
|
||||
_this.wrapper.ws.cmd("configSet", ["trackers_proxy", "tor"]);
|
||||
_this.wrapper.ws.cmd("siteUpdate", _this.wrapper.site_info.address);
|
||||
_this.wrapper.ws.cmd("siteUpdate", {
|
||||
address: _this.wrapper.site_info.address,
|
||||
announce: true
|
||||
});
|
||||
_this.wrapper.reloadIframe();
|
||||
return false;
|
||||
};
|
||||
|
@ -711,6 +714,7 @@ jQuery.extend( jQuery.easing,
|
|||
}).call(this);
|
||||
|
||||
|
||||
|
||||
/* ---- src/Ui/media/Notifications.coffee ---- */
|
||||
|
||||
|
||||
|
@ -1727,7 +1731,6 @@ jQuery.extend( jQuery.easing,
|
|||
}).call(this);
|
||||
|
||||
|
||||
|
||||
/* ---- src/Ui/media/WrapperZeroFrame.coffee ---- */
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue