Perform AWSVPC checks for attach in script rather than in weaveutil
This commit is contained in:
1 parent
fb9b4ddec0
commit
37fd54f20b
3 files changed
+27
-55
No files matched your search
@@ -53,14 +53,6 @@ func (client *Client) DefaultSubnet() (*net.IPNet, error) {
|
||||
return ipnet, err
|
||||
}
|
||||
|
||||
func (client *Client) LocalRangeTracker() (string, error) {
|
||||
t, err := client.httpVerb("GET", fmt.Sprintf("/ipinfo/tracker"), nil)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return t, nil
|
||||
}
|
||||
|
||||
func parseIP(body string) (*net.IPNet, error) {
|
||||
ip, ipnet, err := net.ParseCIDR(string(body))
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user