mirror of
git://erdgeist.org/opentracker
synced 2025-04-04 20:37:15 +08:00
Add workaround to openbsd's broken v6 API
This commit is contained in:
parent
f1ce4ea499
commit
ff3c0feab5
3
Makefile
3
Makefile
@ -20,13 +20,14 @@ LIBOWFAT_LIBRARY=$(PREFIX)/libowfat
|
|||||||
BINDIR?=$(PREFIX)/bin
|
BINDIR?=$(PREFIX)/bin
|
||||||
|
|
||||||
#FEATURES+=-DWANT_V6
|
#FEATURES+=-DWANT_V6
|
||||||
|
#FEATURES+=-DWANT_BROKEN_OPENBSD_V6_API
|
||||||
|
|
||||||
#FEATURES+=-DWANT_ACCESSLIST_BLACK
|
#FEATURES+=-DWANT_ACCESSLIST_BLACK
|
||||||
#FEATURES+=-DWANT_ACCESSLIST_WHITE
|
#FEATURES+=-DWANT_ACCESSLIST_WHITE
|
||||||
|
|
||||||
#FEATURES+=-DWANT_SYNC_LIVE
|
#FEATURES+=-DWANT_SYNC_LIVE
|
||||||
#FEATURES+=-DWANT_SYNC_SCRAPE
|
#FEATURES+=-DWANT_SYNC_SCRAPE
|
||||||
#FEATURES+=-DWANT_IP_FROM_QUERY_STRING
|
FEATURES+=-DWANT_IP_FROM_QUERY_STRING
|
||||||
#FEATURES+=-DWANT_COMPRESSION_GZIP
|
#FEATURES+=-DWANT_COMPRESSION_GZIP
|
||||||
#FEATURES+=-DWANT_LOG_NETWORKS
|
#FEATURES+=-DWANT_LOG_NETWORKS
|
||||||
#FEATURES+=-DWANT_RESTRICT_STATS
|
#FEATURES+=-DWANT_RESTRICT_STATS
|
||||||
|
@ -440,6 +440,9 @@ int main( int argc, char **argv ) {
|
|||||||
#ifndef WANT_V6
|
#ifndef WANT_V6
|
||||||
serverip[10]=serverip[11]=0xff;
|
serverip[10]=serverip[11]=0xff;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef WANT_BROKEN_OPENBSD_V6_API
|
||||||
|
noipv6=1;
|
||||||
|
#endif
|
||||||
|
|
||||||
while( scanon ) {
|
while( scanon ) {
|
||||||
switch( getopt( argc, argv, ":i:p:A:P:d:r:s:f:v"
|
switch( getopt( argc, argv, ":i:p:A:P:d:r:s:f:v"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user