util  Check-in [5c657640bd]

Overview
Comment:kill v4 support; this was never implemented on comint and only causes problems. a thousand tortures to the enemies of v6!!
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5c657640bda97f14ea7adbd2657911fbdce4e881a3b1706f8695bce66a9aecc7
User & Date: u0_a153 on 2025-04-15 10:22:28
Other Links: manifest | tags
Context
2025-04-15
10:28
fix idiot typo Leaf check-in: a1d7d9de5e user: lexi tags: trunk
10:22
kill v4 support; this was never implemented on comint and only causes problems. a thousand tortures to the enemies of v6!! check-in: 5c657640bd user: u0_a153 tags: trunk
2025-03-14
19:27
add docs check-in: a597ad7ee7 user: lexi tags: trunk
Changes

Modified wgsync/src/wgsync.c from [3eda0dfc74] to [d78cd2aaf3].

   451    451   	char* connstr = getenv("wgsync_conn");
   452    452   	if(connstr == null) _fatal("no connection string supplied");
   453    453   	PGconn* db = PQconnectdb(connstr);
   454    454   	if(PQstatus(db) != CONNECTION_OK) 
   455    455   		_fatal(PQerrorMessage(db));
   456    456   
   457    457   	PGresult* q_get_hosts = PQprepare(db, "get_hosts",
   458         -		"select h.ref, array_remove(array_agg(wgv4::inet)"
   459         -		                        "|| array_agg(wgv6::inet), null)"
          458  +		"select h.ref, array_remove(
          459  +		/* "select h.ref, array_remove(array_agg(wgv4::inet) ||" */
          460  +		                        "array_agg(wgv6::inet), null)"
   460    461   			"from ns, hostref h "
   461    462   			"where ns.host = h.host and kind = 'pubkey' "
   462    463   			" group by h.host, h.ref;", 0, null);
   463    464   		/*"select ns.wgv4::inet, ns.wgv6::inet, h.ref from ns "
   464    465   			"right join hostref h "
   465    466   				"on h.host = ns.host "
   466    467   			"where h.kind = 'pubkey';"*/