mirror of
				https://github.com/max-moser/network-manager-wireguard.git
				synced 2025-11-04 00:53:49 +03:00 
			
		
		
		
	Remove previously added debug stuff
This commit is contained in:
		
							parent
							
								
									65b6904f11
								
							
						
					
					
						commit
						832ece4de2
					
				@ -487,22 +487,17 @@ main (int argc, char *argv[])
 | 
				
			|||||||
		return EXIT_FAILURE;
 | 
							return EXIT_FAILURE;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// the parameters are supplied via arguments
 | 
					 | 
				
			||||||
	printf("UUID: %s, Name: %s, Service: %s\n", vpn_uuid, vpn_name, vpn_service);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if (strcmp (vpn_service, NM_VPN_SERVICE_TYPE_WIREGUARD) != 0) {
 | 
						if (strcmp (vpn_service, NM_VPN_SERVICE_TYPE_WIREGUARD) != 0) {
 | 
				
			||||||
		fprintf (stderr, "This dialog only works with the '%s' service\n", NM_VPN_SERVICE_TYPE_WIREGUARD);
 | 
							fprintf (stderr, "This dialog only works with the '%s' service\n", NM_VPN_SERVICE_TYPE_WIREGUARD);
 | 
				
			||||||
		return EXIT_FAILURE;
 | 
							return EXIT_FAILURE;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	printf("Reading stdin details\n");
 | 
					 | 
				
			||||||
	// reads secrets/data from STDIN until "DONE" is read
 | 
						// reads secrets/data from STDIN until "DONE" is read
 | 
				
			||||||
	if (!nm_vpn_service_plugin_read_vpn_details (0, &data, &secrets)) {
 | 
						if (!nm_vpn_service_plugin_read_vpn_details (0, &data, &secrets)) {
 | 
				
			||||||
		fprintf (stderr, "Failed to read '%s' (%s) data and secrets from stdin.\n",
 | 
							fprintf (stderr, "Failed to read '%s' (%s) data and secrets from stdin.\n",
 | 
				
			||||||
		         vpn_name, vpn_uuid);
 | 
							         vpn_name, vpn_uuid);
 | 
				
			||||||
		//return 1; // TODO re-add
 | 
							return 1;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	printf("Done reading\n");
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (external_ui_mode) {
 | 
						if (external_ui_mode) {
 | 
				
			||||||
		no_secrets_required_func = eui_no_secrets_required;
 | 
							no_secrets_required_func = eui_no_secrets_required;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user