-
Notifications
You must be signed in to change notification settings - Fork 246
Auto-enable IPv6 by default, unless disabled #3720
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
Changes from all commits
cffbe23
10967ea
05ce429
74584ee
a65ecf3
16c242b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -118,7 +118,7 @@ int main ( int argc, char** argv ) | |
| bool bNoAutoJackConnect = false; | ||
| bool bUseTranslation = true; | ||
| bool bCustomPortNumberGiven = false; | ||
| bool bEnableIPv6 = false; | ||
| bool bDisableIPv6 = false; | ||
| int iNumServerChannels = DEFAULT_USED_NUM_CHANNELS; | ||
| quint16 iPortNumber = DEFAULT_PORT_NUMBER; | ||
| int iJsonRpcPortNumber = INVALID_PORT; | ||
|
|
@@ -262,11 +262,19 @@ int main ( int argc, char** argv ) | |
| continue; | ||
| } | ||
|
|
||
| // Disable IPv6 --------------------------------------------------------- | ||
| if ( GetFlagArgument ( argv, i, "--noipv6", "--noipv6" ) ) | ||
|
ann0see marked this conversation as resolved.
|
||
| { | ||
| bDisableIPv6 = true; | ||
| qInfo() << "- IPv6 disabled"; | ||
|
ann0see marked this conversation as resolved.
|
||
| CommandLineOptions << "--noipv6"; | ||
| continue; | ||
| } | ||
|
|
||
| // Enable IPv6 --------------------------------------------------------- | ||
| if ( GetFlagArgument ( argv, i, "-6", "--enableipv6" ) ) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, I think we should leave This will ease transition -- i.e. server operators taking the latest version will not have to rewrite their start up files just because of this.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, I'll add an update
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, they are not ignored - they make it output that message! I'll change it to say |
||
| { | ||
| bEnableIPv6 = true; | ||
| qInfo() << "- IPv6 enabled"; | ||
| qWarning() << "IPv6 is now enabled by default: -6 and --enableipv6 have no effect and are deprecated"; | ||
| CommandLineOptions << "--enableipv6"; | ||
| continue; | ||
| } | ||
|
|
@@ -943,7 +951,8 @@ int main ( int argc, char** argv ) | |
| #ifndef SERVER_ONLY | ||
| if ( bIsClient ) | ||
| { | ||
| CClient Client ( iPortNumber, iQosNumber, strConnOnStartupAddress, bNoAutoJackConnect, strClientName, bEnableIPv6, bMuteMeInPersonalMix ); | ||
| CClient | ||
| Client ( iPortNumber, iQosNumber, strConnOnStartupAddress, bNoAutoJackConnect, strClientName, bDisableIPv6, bMuteMeInPersonalMix ); | ||
|
|
||
| // Create Settings with the client pointer | ||
| CClientSettings Settings ( &Client, strIniFileName ); | ||
|
|
@@ -968,14 +977,8 @@ int main ( int argc, char** argv ) | |
| } | ||
|
|
||
| // GUI object | ||
| CClientDlg ClientDlg ( &Client, | ||
| &Settings, | ||
| strConnOnStartupAddress, | ||
| bShowComplRegConnList, | ||
| bShowAnalyzerConsole, | ||
| bMuteStream, | ||
| bEnableIPv6, | ||
| nullptr ); | ||
| CClientDlg | ||
| ClientDlg ( &Client, &Settings, strConnOnStartupAddress, bShowComplRegConnList, bShowAnalyzerConsole, bMuteStream, nullptr ); | ||
|
|
||
| // show dialog | ||
| ClientDlg.show(); | ||
|
|
@@ -1014,7 +1017,7 @@ int main ( int argc, char** argv ) | |
| bUseMultithreading, | ||
| bDisableRecording, | ||
| bDelayPan, | ||
| bEnableIPv6, | ||
| bDisableIPv6, | ||
| eLicenceType ); | ||
|
|
||
| #ifndef NO_JSON_RPC | ||
|
|
@@ -1116,7 +1119,8 @@ QString UsageArguments ( char** argv ) | |
| " -Q, --qos set the QoS value. Default is 128. Disable with 0\n" | ||
| " (see the Jamulus website to enable QoS on Windows)\n" | ||
| " -t, --notranslation disable translation (use English language)\n" | ||
| " -6, --enableipv6 enable IPv6 addressing (IPv4 is always enabled)\n" | ||
| " --noipv6 disable IPv6 addressing (IPv4 is always enabled)\n" | ||
|
ann0see marked this conversation as resolved.
|
||
| " (recommended to leave IPv6 enabled by default)\n" | ||
| "\n" | ||
| "Server only:\n" | ||
| " -d, --discononquit disconnect all Clients on quit\n" | ||
|
|
@@ -1138,7 +1142,8 @@ QString UsageArguments ( char** argv ) | |
| " --norecord set server not to record by default when recording is configured\n" | ||
| " --noraw disable raw audio\n" | ||
| " -s, --server start Server\n" | ||
| " --serverbindip IP address the Server will bind to (rather than all)\n" | ||
| " --serverbindip IPv4 address the Server will bind to (rather than all)\n" | ||
| " (only works if IPv6 is unavailable or disabled with --noipv6)\n" | ||
| " -T, --multithreading use multithreading to make better use of\n" | ||
| " multi-core CPUs and support more Clients\n" | ||
| " -u, --numchannels maximum number of channels\n" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.