add version info to web footer (#2010)

fixes #1893
This commit is contained in:
Alireza Mosajjal 2017-02-12 12:36:44 +03:30 committed by Thomas Kriechbaumer
parent 3067a971f9
commit f77cf03543

View File

@ -8,7 +8,7 @@ Footer.propTypes = {
function Footer({ settings }) {
let {mode, intercept, showhost, no_upstream_cert, rawtcp, http2, websocket, anticache, anticomp,
stickyauth, stickycookie, stream_large_bodies, listen_host, listen_port} = settings;
stickyauth, stickycookie, stream_large_bodies, listen_host, listen_port, version} = settings;
return (
<footer>
{mode && mode != "regular" && (
@ -51,6 +51,9 @@ function Footer({ settings }) {
<span className="label label-primary" title="HTTP Proxy Server Address">
[{listen_host || "*"}:{listen_port}]
</span>
<span className="label label-info" title="Version">
[version:{version}]
</span>
</div>
</footer>
)