Skip to content

Allow to enforce IPv4 or IPv6 in URL-like connection string.#20

Merged
dyemanov merged 1 commit intoFirebirdSQL:masterfrom
mkubecek:mk/4.0/inet46
May 6, 2016
Merged

Allow to enforce IPv4 or IPv6 in URL-like connection string.#20
dyemanov merged 1 commit intoFirebirdSQL:masterfrom
mkubecek:mk/4.0/inet46

Conversation

@mkubecek
Copy link
Copy Markdown
Contributor

@mkubecek mkubecek commented May 5, 2016

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.

@dyemanov dyemanov self-assigned this May 5, 2016
@aafemt
Copy link
Copy Markdown
Contributor

aafemt commented May 5, 2016

I'd suggest to make legacy connection string host:database a synonym to inet4://

@mkubecek
Copy link
Copy Markdown
Contributor Author

mkubecek commented May 6, 2016

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.

@dyemanov dyemanov merged commit b9421f3 into FirebirdSQL:master May 6, 2016
@mkubecek mkubecek deleted the mk/4.0/inet46 branch June 15, 2016 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants