Enable PMTUDiscovery only if BOTH sides wants it.
Don't enable PMTUDiscovery if at least one side does not support it. Before it was enabled if at least one side supported it, now both are required.
This commit is contained in:
		
							parent
							
								
									1c1a67fd93
								
							
						
					
					
						commit
						76a1bcaffc
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -483,7 +483,7 @@ bool send_ack(connection_t *c) | |||
| 	if((get_config_bool(lookup_config(c->config_tree, "TCPOnly"), &choice) && choice) || myself->options & OPTION_TCPONLY) | ||||
| 		c->options |= OPTION_TCPONLY | OPTION_INDIRECT; | ||||
| 
 | ||||
| 	if((!get_config_bool(lookup_config(c->config_tree, "PMTUDiscovery"), &choice) || choice) || myself->options & OPTION_PMTU_DISCOVERY) | ||||
| 	if((!get_config_bool(lookup_config(c->config_tree, "PMTUDiscovery"), &choice) || choice) && (myself->options & OPTION_PMTU_DISCOVERY)) | ||||
| 		c->options |= OPTION_PMTU_DISCOVERY; | ||||
| 
 | ||||
| 	get_config_int(lookup_config(c->config_tree, "Weight"), &c->estimated_weight); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue