Replace $VERSION in the banner file
with the ElectrumX version string
This commit is contained in:
parent
1aaed2e913
commit
9eb701f220
@ -33,7 +33,9 @@ SSL_PORT - if set will serve Electrum SSL clients on that HOST:SSL_PORT
|
|||||||
RPC_PORT - Listen on this port for local RPC connections, defaults to
|
RPC_PORT - Listen on this port for local RPC connections, defaults to
|
||||||
8000.
|
8000.
|
||||||
BANNER_FILE - a path to a banner file to serve to clients. The banner file
|
BANNER_FILE - a path to a banner file to serve to clients. The banner file
|
||||||
is re-read for each new client.
|
is re-read for each new client. The string $VERSION in your
|
||||||
|
banner file will be replaced with the ElectrumX version you
|
||||||
|
are runnning, such as 'ElectrumX 0.7.11'.
|
||||||
ANON_LOGS - set to anything non-empty to remove IP addresses from
|
ANON_LOGS - set to anything non-empty to remove IP addresses from
|
||||||
logs. By default IP addresses will be logged.
|
logs. By default IP addresses will be logged.
|
||||||
DONATION_ADDRESS - server donation address. Defaults to none.
|
DONATION_ADDRESS - server donation address. Defaults to none.
|
||||||
|
|||||||
@ -837,6 +837,8 @@ class ElectrumX(Session):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.error('reading banner file {}: {}'
|
self.logger.error('reading banner file {}: {}'
|
||||||
.format(self.env.banner_file, e))
|
.format(self.env.banner_file, e))
|
||||||
|
else:
|
||||||
|
banner = banner.replace('$VERSION', VERSION)
|
||||||
return banner
|
return banner
|
||||||
|
|
||||||
async def donation_address(self, params):
|
async def donation_address(self, params):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user