Allow to enforce IPv4 or IPv6 in URL-like connection string.#20
Merged
dyemanov merged 1 commit intoFirebirdSQL:masterfrom May 6, 2016
Merged
Allow to enforce IPv4 or IPv6 in URL-like connection string.#20dyemanov merged 1 commit intoFirebirdSQL:masterfrom
dyemanov merged 1 commit intoFirebirdSQL:masterfrom
Conversation
Contributor
|
I'd suggest to make legacy connection string host:database a synonym to inet4:// |
Contributor
Author
|
That would be highly unusual. There are client applications that provide an option to enforce IPv4/IPv6, mostly with '-4' or '-6' option (e.g. ssh, netcat or wget). There are client applications with special IPv6 variant (mostly low level utilities like ping or traceroute). And there are, of course, programs that do not support IPv6 at all as they were written long ago and nobody fixed them yet. But I'm not sure if I have ever seen a client application that would support IPv6 connections but would require a special syntax (or parameter) to be allowed to use it if remote host is passed by name. |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extend the new (URL like) connection string format by protocols inet4 and inet6 which work exactly like inet except the resolver is asked for only IPv4 or only IPv6 addresses. As discussed on firebird-devel mailing list, this can be used as a workaround on systems where the resolver returns an IPv6 address for a name but an attempt to connect to it times out rather than failing quickly.