Commit 3c622ff 1 parent a0247f7 commit 3c622ff Copy full SHA for 3c622ff
File tree 4 files changed +17
-5
lines changed
4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## [ v5.5.1] ( https://github.com/containeroo/SyncFlaer/tree/v5.5.1 ) (2022-10-31)
4
+
5
+ [ All Commits] ( https://github.com/containeroo/SyncFlaer/compare/v5.5.0...v5.5.1 )
6
+
7
+ ** Bug fixes:**
8
+
9
+ - GitHub API errors are now debug messages (#141 )
10
+ - Remove ` myip.is ` from default ip providers list since it now returns a 404 (#142 )
11
+
12
+ ** Dependencies:**
13
+
14
+ - Bump several dependencies
15
+
3
16
## [ v5.5.0] ( https://github.com/containeroo/SyncFlaer/tree/v5.5.0 ) (2022-05-02)
4
17
5
18
[ All Commits] ( https://github.com/containeroo/SyncFlaer/compare/v5.4.2...v5.5.0 )
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import (
14
14
log "github.com/sirupsen/logrus"
15
15
)
16
16
17
- const version string = "5.5.0 "
17
+ const version string = "5.5.1 "
18
18
19
19
var latestVersion string
20
20
Original file line number Diff line number Diff line change 1
1
package sf
2
2
3
3
import (
4
- "io/ioutil"
5
4
"os"
6
5
"strings"
7
6
@@ -64,7 +63,7 @@ func maskValue(value string) string {
64
63
65
64
func GetConfig (configFilePath string ) * Configuration {
66
65
log .Debugf ("Loading config file %s" , configFilePath )
67
- configFile , err := ioutil .ReadFile (configFilePath )
66
+ configFile , err := os .ReadFile (configFilePath )
68
67
if err != nil {
69
68
log .Fatalf ("Unable to load config file %s from disk: %s" , configFilePath , err )
70
69
}
Original file line number Diff line number Diff line change 1
1
package sf
2
2
3
3
import (
4
- "io/ioutil "
4
+ "io"
5
5
"math/rand"
6
6
"net"
7
7
"net/http"
@@ -29,7 +29,7 @@ func GetCurrentIP(ipProviders *[]string) string {
29
29
log .Errorf ("Unable to get public ip from %s: http status code %d" , provider , resp .StatusCode )
30
30
continue
31
31
}
32
- ip , err := ioutil .ReadAll (resp .Body )
32
+ ip , err := io .ReadAll (resp .Body )
33
33
if err != nil {
34
34
log .Errorf ("Unable to get public ip from %s: %s" , provider , err )
35
35
continue
You can’t perform that action at this time.
0 commit comments