From dbca3f769f76ed4ab764a6723befac1ecf122a96 Mon Sep 17 00:00:00 2001 From: wrench Date: Sun, 11 Feb 2024 18:46:13 -0500 Subject: [PATCH 1/2] docs: fix broken branch link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index faea36c7..d1324bd6 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@
> [!NOTE] -> Checkout [python branch](https://github.com/EverythingSuckz/TG-FileStreamBot/tree/main) if you are interested in that. +> Checkout [python branch](https://github.com/EverythingSuckz/TG-FileStreamBot/tree/python) if you are interested in that.
From 3c52c679fede28814e2a04ceb107a167b3458991 Mon Sep 17 00:00:00 2001 From: wrench Date: Mon, 15 Apr 2024 08:21:49 -0400 Subject: [PATCH 2/2] fix #142 --- cmd/fsb/run.go | 6 ------ config/config.go | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/cmd/fsb/run.go b/cmd/fsb/run.go index 0857d4e1..ac2b563b 100644 --- a/cmd/fsb/run.go +++ b/cmd/fsb/run.go @@ -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) diff --git a/config/config.go b/config/config.go index a735dbf5..94bd059e 100644 --- a/config/config.go +++ b/config/config.go @@ -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 }