Skip to content

Commit

Permalink
fix #142
Browse files Browse the repository at this point in the history
  • Loading branch information
EverythingSuckz committed Apr 15, 2024
1 parent dbca3f7 commit 3c52c67
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions cmd/fsb/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ func runApp(cmd *cobra.Command, args []string) {
mainLogger.Info("Server started", zap.Int("port", config.ValueOf.Port))
mainLogger.Info("File Stream Bot", zap.String("version", versionString))
mainLogger.Sugar().Infof("Server is running at %s", config.ValueOf.Host)
publicIp, err := config.GetPublicIP()
if err != nil {
mainLogger.Debug("Failed to get public IP", zap.Error(err))
} else {
mainLogger.Info("Public IP", zap.String("ip", publicIp))
}
err = router.Run(fmt.Sprintf(":%d", config.ValueOf.Port))
if err != nil {
mainLogger.Sugar().Fatalln(err)
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type config struct {
HashLength int `envconfig:"HASH_LENGTH" default:"6"`
UseSessionFile bool `envconfig:"USE_SESSION_FILE" default:"true"`
UserSession string `envconfig:"USER_SESSION"`
UsePublicIP bool `envconfig:"USE_PUBLIC_IP" default:"true"`
UsePublicIP bool `envconfig:"USE_PUBLIC_IP" default:"false"`
AllowedUsers allowedUsers `envconfig:"ALLOWED_USERS"`
MultiTokens []string
}
Expand Down

0 comments on commit 3c52c67

Please sign in to comment.