Skip to content

Commit

Permalink
update service name
Browse files Browse the repository at this point in the history
  • Loading branch information
koho committed May 24, 2020
1 parent 970fe29 commit 8d192ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion installer/build.bat
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion services/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion services/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8d192ca

Please sign in to comment.