Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
CorrectRoadH committed Jul 12, 2024
1 parent 6055ab1 commit 629dc17
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 102 deletions.
9 changes: 0 additions & 9 deletions pkg/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,11 @@ package pkg

import (
"errors"
"fmt"
"os"
"path/filepath"

"github.com/IceWhaleTech/CasaOS-Common/utils/constants"
"github.com/IceWhaleTech/CasaOS-Gateway/common"
)

func GetGatewayPort() (int, error) {
ConfigFilePath := filepath.Join(constants.DefaultConfigPath, common.GatewayName+"."+common.GatewayConfigType)
if _, err := os.Stat(ConfigFilePath); os.IsNotExist(err) {
return 0, errors.New(fmt.Sprintf("config file %s not exist", ConfigFilePath))
}

config, err := common.LoadConfig()
if err != nil {
return 0, err
Expand Down
93 changes: 0 additions & 93 deletions pkg/port_test.go

This file was deleted.

0 comments on commit 629dc17

Please sign in to comment.