update service name

This commit is contained in:
koho
2020-05-24 19:45:56 +08:00
parent 970fe29e69
commit 8d192ca99e
3 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
@echo off
set FRPMGR_VERSION=1.2.2
set FRPMGR_VERSION=1.2.3
set BUILDDIR=%~dp0
cd /d %BUILDDIR% || exit /b 1
call VsDevCmd.bat

View File

@ -66,7 +66,8 @@ func InstallService(configPath string) error {
ServiceType: windows.SERVICE_WIN32_OWN_PROCESS,
StartType: mgr.StartAutomatic,
ErrorControl: mgr.ErrorNormal,
DisplayName: "Frpc: " + name,
DisplayName: "FRP Client: " + name,
Description: "FRP Client Daemon Service",
SidType: windows.SERVICE_SID_TYPE_UNRESTRICTED,
}
service, err = m.CreateService(serviceName, path, conf, "/service", configPath)

View File

@ -15,7 +15,7 @@ import (
)
func ServiceNameOfConf(name string) string {
return fmt.Sprintf("Frpc$%s", name)
return fmt.Sprintf("FRPC$%s", name)
}
type frpService struct {