catalinux / ip2clue (public) (License: GPLv3) (since 2016-03-01) (hash sha1)
High-performance IPv4 and IPv6 daemon to retrieve IPv4/6 country information.
List of commits:
Subject Hash Author Date (UTC)
Add a configuration option to not put daemon in background. 1f93e296dca0bd488f6c6977295315bcc829e013 Catalin(ux) M. BOIE 2010-07-06 14:47:36
Improved default file list. 6cc3f58b0e1e9eed196f5a9b1d4550e1d929e70b Catalin(ux) M. BOIE 2010-07-06 14:46:43
Check daily if we need to re-download data, not monthly. fe5cc5bd9edf34f67626cbdfb19b6a19da9fdcc1 Catalin(ux) M. BOIE 2010-07-06 14:46:00
Added parser_core files/functions. 222c9be2ac2362f5502d2382dcd1d114b761aa25 Catalin(ux) M. BOIE 2010-07-06 14:45:21
Bumped up the version to 0.0.91. b96da42bcc0a0781a695824fdb6ca3423fa716db Catalin(ux) M. BOIE 2010-07-05 14:39:21
Duilder updates. cc0c7ff25ea3c51ad69bb71698f49532ea3b6578 Catalin(ux) M. BOIE 2010-07-05 14:38:50
Some paths need to be created. 27932b9737b77f0ea9fedd8eb3d8326f04e6aa73 Catalin(ux) M. BOIE 2010-07-05 14:38:24
Improved paths and macros. b6119ea638711c26e8499528faf8024163e24f2f Catalin(ux) M. BOIE 2010-07-05 14:37:59
Corrected wrong path to config file. bcdc293ccb699c20ce3639f16c2812374b3dff88 Catalin(ux) M. BOIE 2010-07-05 14:37:21
Tests if the file exists before getting mtime. 43044a8d442884e20ba866f0f92bf655bc02b131 Catalin(ux) M. BOIE 2010-07-05 14:36:51
Initial version (0.0.90). 5807f4955d446127a7b873f5f3918f408ab93fff Catalin(ux) M. BOIE 2010-07-01 15:39:22
Commit 1f93e296dca0bd488f6c6977295315bcc829e013 - Add a configuration option to not put daemon in background.
Author: Catalin(ux) M. BOIE
Author date (UTC): 2010-07-06 14:47
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2010-07-06 14:47
Parent(s): 6cc3f58b0e1e9eed196f5a9b1d4550e1d929e70b
Signing key:
Tree: ca7aefef318271ba39712b8e9f564eb314714dfa
File Lines added Lines deleted
etc/ip2clued.conf 2 0
ip2clued.c 8 2
File etc/ip2clued.conf changed (mode: 100644) (index 08860e4..763c614)
... ... ipv6 = 1
52 52 # debug (0-30) # debug (0-30)
53 53 debug = 1 debug = 1
54 54
55 # put 1 to not go in background
56 nodaemon = 0
File ip2clued.c changed (mode: 100644) (index cc7a2b2..17431c8)
... ... static unsigned int conf_port;
25 25 static unsigned int conf_ipv4; static unsigned int conf_ipv4;
26 26 static unsigned int conf_ipv6; static unsigned int conf_ipv6;
27 27 static unsigned int conf_debug; static unsigned int conf_debug;
28 static unsigned int conf_nodaemon;
28 29
29 30 /* This will protect accesses to list 'list' */ /* This will protect accesses to list 'list' */
30 31 static pthread_rwlock_t list_rwlock; static pthread_rwlock_t list_rwlock;
 
... ... int main(int argc, char *argv[])
171 172 conf_ipv4 = ip2clue_conf_get_ul(conf, "ipv4", 10); conf_ipv4 = ip2clue_conf_get_ul(conf, "ipv4", 10);
172 173 conf_ipv6 = ip2clue_conf_get_ul(conf, "ipv6", 10); conf_ipv6 = ip2clue_conf_get_ul(conf, "ipv6", 10);
173 174 conf_debug = ip2clue_conf_get_ul(conf, "debug", 10); conf_debug = ip2clue_conf_get_ul(conf, "debug", 10);
175 conf_nodaemon = ip2clue_conf_get_ul(conf, "nodaemon", 10);
174 176
175 177 if (!conf_datadir || !conf_files) { if (!conf_datadir || !conf_files) {
176 178 Log(0, "ERROR: 'datadir = ' or 'files = ' missing from conf file!\n"); Log(0, "ERROR: 'datadir = ' or 'files = ' missing from conf file!\n");
 
... ... int main(int argc, char *argv[])
191 193
192 194 Log(1, "Parameters: datadir=[%s] files=[%s] format=[%s]" Log(1, "Parameters: datadir=[%s] files=[%s] format=[%s]"
193 195 " refresh=%lu port=%u ipv4=%u ipv6=%u" " refresh=%lu port=%u ipv4=%u ipv6=%u"
194 " debug=%u",
196 " debug=%u nodaemon=%u",
195 197 conf_datadir, conf_files, conf_format, conf_datadir, conf_files, conf_format,
196 198 conf_refresh, conf_port, conf_ipv4, conf_ipv6, conf_refresh, conf_port, conf_ipv4, conf_ipv6,
197 conf_debug);
199 conf_debug, conf_nodaemon);
200
201
202 if (conf_nodaemon == 0)
203 daemon(0, 0);
198 204
199 205
200 206 ip2clue_list_init(&list); ip2clue_list_init(&list);
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/ip2clue

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/ip2clue

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/ip2clue

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main