Skip to content

Commit

Permalink
fix abs paths
Browse files Browse the repository at this point in the history
  • Loading branch information
colin969 committed Jul 30, 2023
1 parent d327a19 commit e4dfc44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ func init() {
proxySettings.LegacyPHPPath = *legacyPHPPath
proxySettings.LegacyUsePHPServer = *legacyUsePHPServer
proxySettings.LegacyHTDOCSPath = *legacyHTDOCSPath
proxySettings.GameRootPath, err = filepath.Abs(*gameRootPath)
proxySettings.GameRootPath, err = filepath.Abs(strings.Trim(*gameRootPath, "\""))
if err != nil {
fmt.Printf("Failed to get absolute game root path")
return
}
proxySettings.PhpCgiPath, err = filepath.Abs(*phpCgiPath)
proxySettings.PhpCgiPath, err = filepath.Abs(strings.Trim(*phpCgiPath, "\""))
if err != nil {
fmt.Printf("Failed to get absolute php cgi path")
return
Expand Down

0 comments on commit e4dfc44

Please sign in to comment.