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