Report a couple of options that are incompatible with --awsvpc
This commit is contained in:
1 parent
7a1bd27a58
commit
b32da8d69f
2 files changed
+8
No files matched your search
@@ -268,6 +268,10 @@ func main() {
|
|||||||
config.TrustedSubnets = parseTrustedSubnets(trustedSubnetStr)
|
config.TrustedSubnets = parseTrustedSubnets(trustedSubnetStr)
|
||||||
config.PeerDiscovery = !noDiscovery
|
config.PeerDiscovery = !noDiscovery
|
||||||
|
|
||||||
|
if isAWSVPC && len(config.Password) > 0 {
|
||||||
|
Log.Fatalf("--awsvpc mode is not compatible with the --password option")
|
||||||
|
}
|
||||||
|
|
||||||
db, err := db.NewBoltDB(dbPrefix + "data.db")
|
db, err := db.NewBoltDB(dbPrefix + "data.db")
|
||||||
checkFatal(err)
|
checkFatal(err)
|
||||||
defer db.Close()
|
defer db.Close()
|
||||||
|
|||||||
@@ -1608,6 +1608,10 @@ launch_router() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
if [ -n "$AWSVPC" -a -z "$IPRANGE" ] ; then
|
||||||
|
echo "ERROR: Empty --ipalloc-range is not compatible with --awsvpc." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
if [ -n "$IPRANGE" ] && ! check_overlap $IPRANGE ; then
|
if [ -n "$IPRANGE" ] && ! check_overlap $IPRANGE ; then
|
||||||
echo "WARNING: Specified --ipalloc-range $IPRANGE overlaps with existing route on host." >&2
|
echo "WARNING: Specified --ipalloc-range $IPRANGE overlaps with existing route on host." >&2
|
||||||
echo "Unless this is deliberate, you must pick another range and set it on all hosts." >&2
|
echo "Unless this is deliberate, you must pick another range and set it on all hosts." >&2
|
||||||
|
|||||||
Reference in new issue
Block a user