add optional version number on controlpanel

This commit is contained in:
ed
2023-02-04 13:41:34 +00:00
parent 4e7dd32e78
commit 190ccee820
3 changed files with 4 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ except:
pass
from .__init__ import ANYWIN, PY2, TYPE_CHECKING, EnvParams, unicode
from .__version__ import S_VERSION
from .authsrv import VFS # typechk
from .bos import bos
from .star import StreamTar
@@ -2875,6 +2876,7 @@ class HttpCli(object):
dbwt=vs["dbwt"],
url_suf=suf,
k304=self.k304(),
ver=S_VERSION if self.args.ver else "",
)
self.reply(html.encode("utf-8"))
return True