Added Core Version

This commit is contained in:
Whispering Wind
2024-12-20 22:53:00 +03:30
committed by GitHub
parent 6efd2de02a
commit 125fedcdd1

View File

@ -42,6 +42,7 @@ version_greater_equal() {
check_core_version() { check_core_version() {
if systemctl is-active --quiet hysteria-server.service; then if systemctl is-active --quiet hysteria-server.service; then
HCVERSION=$(hysteria version | grep "^Version:" | awk '{print $2}') HCVERSION=$(hysteria version | grep "^Version:" | awk '{print $2}')
echo -e "Hysteria2 Core Version: ${cyan}$HCVERSION${NC}"
fi fi
} }