Skip to content

Commit

Permalink
always send readonly flag, clearer code
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@19468 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed May 26, 2018
1 parent 2e32d42 commit f962979
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/xpra/server/server_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1594,10 +1594,11 @@ def make_hello(self, source=None):
"server.mode" : self.get_server_mode(),
})
if source is None or source.wants_features:
capabilities["info-request"] = True
capabilities["readonly-server"] = True
if self.readonly:
capabilities["readonly"] = True
capabilities.update({
"info-request" : True,
"readonly-server" : True,
"readonly" : self.readonly,
})
if source is None or source.wants_versions:
capabilities["uuid"] = get_user_uuid()
mid = get_machine_id()
Expand Down

0 comments on commit f962979

Please sign in to comment.