mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 13:40:22 +03:00
upgrade golang-lint to the latest (#15600)
This commit is contained in:
+2
-1
@@ -322,7 +322,8 @@ func isLocalHost(host string, port string, localPort string) (bool, error) {
|
||||
|
||||
// sameLocalAddrs - returns true if two addresses, even with different
|
||||
// formats, point to the same machine, e.g:
|
||||
// ':9000' and 'http://localhost:9000/' will return true
|
||||
//
|
||||
// ':9000' and 'http://localhost:9000/' will return true
|
||||
func sameLocalAddrs(addr1, addr2 string) (bool, error) {
|
||||
// Extract host & port from given parameters
|
||||
host1, port1, err := extractHostPort(addr1)
|
||||
|
||||
Reference in New Issue
Block a user