Skip to content

Commit 16c242b

Browse files
committed
Accept deprecated -6 and --enableipv6 with warning and no action
1 parent a65ecf3 commit 16c242b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/main.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,14 @@ int main ( int argc, char** argv )
271271
continue;
272272
}
273273

274+
// Enable IPv6 ---------------------------------------------------------
275+
if ( GetFlagArgument ( argv, i, "-6", "--enableipv6" ) )
276+
{
277+
qWarning() << "IPv6 is now enabled by default: -6 and --enableipv6 have no effect and are deprecated";
278+
CommandLineOptions << "--enableipv6";
279+
continue;
280+
}
281+
274282
// Server only:
275283

276284
// Disconnect all clients on quit --------------------------------------

0 commit comments

Comments
 (0)