Skip to content

Commit 3c622ff

Browse files
authored
Prepare release v5.5.1 (#147)
1 parent a0247f7 commit 3c622ff

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

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+
316
## [v5.5.0](https://github.com/containeroo/SyncFlaer/tree/v5.5.0) (2022-05-02)
417

518
[All Commits](https://github.com/containeroo/SyncFlaer/compare/v5.4.2...v5.5.0)

cmd/syncflaer/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
log "github.com/sirupsen/logrus"
1515
)
1616

17-
const version string = "5.5.0"
17+
const version string = "5.5.1"
1818

1919
var latestVersion string
2020

internal/config.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package sf
22

33
import (
4-
"io/ioutil"
54
"os"
65
"strings"
76

@@ -64,7 +63,7 @@ func maskValue(value string) string {
6463

6564
func GetConfig(configFilePath string) *Configuration {
6665
log.Debugf("Loading config file %s", configFilePath)
67-
configFile, err := ioutil.ReadFile(configFilePath)
66+
configFile, err := os.ReadFile(configFilePath)
6867
if err != nil {
6968
log.Fatalf("Unable to load config file %s from disk: %s", configFilePath, err)
7069
}

internal/ip.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package sf
22

33
import (
4-
"io/ioutil"
4+
"io"
55
"math/rand"
66
"net"
77
"net/http"
@@ -29,7 +29,7 @@ func GetCurrentIP(ipProviders *[]string) string {
2929
log.Errorf("Unable to get public ip from %s: http status code %d", provider, resp.StatusCode)
3030
continue
3131
}
32-
ip, err := ioutil.ReadAll(resp.Body)
32+
ip, err := io.ReadAll(resp.Body)
3333
if err != nil {
3434
log.Errorf("Unable to get public ip from %s: %s", provider, err)
3535
continue

0 commit comments

Comments
 (0)