Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding warning for IPv6 ending with 1 #13362

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/kernel_v2/config/vm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ def validate(machine, ignore_provider=nil)
end
end

if options[:ip] && options[:ip].end_with?(".1") && (options[:type] || "").to_sym != :dhcp
if options[:ip] && options[:ip].end_with?(".1") || options[:ip].end_with?(":1") && (options[:type] || "").to_sym != :dhcp
machine.ui.warn(I18n.t(
"vagrant.config.vm.network_ip_ends_in_one"))
end
Expand Down
2 changes: 1 addition & 1 deletion templates/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2160,7 +2160,7 @@ en:
name_invalid: |-
The sub-VM name '%{name}' is invalid. Please don't use special characters.
network_ip_ends_in_one: |-
You assigned a static IP ending in ".1" to this machine.
You assigned a static IP ending in ".1" or ":1" to this machine.
This is very often used by the router and can cause the
network to not work properly. If the network doesn't work
properly, try changing this IP.
Expand Down