mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-08 16:11:18 +00:00
Enable hosts and resolv.conf lookups on UNIX only
Not relevant for other platforms PUBLISHED_FROM=65b8959ee677555e2fb330c84d443e0a93d9fd1c
This commit is contained in:
1 parent
84907d5bc4
commit
f868fc861b
2 files changed
+12
-4
No files matched your search
@@ -460,6 +460,14 @@ typedef struct stat cs_stat_t;
|
||||
#define MG_NET_IF MG_NET_IF_SOCKET
|
||||
#endif
|
||||
|
||||
#ifndef MG_HOSTS_FILE_NAME
|
||||
#define MG_HOSTS_FILE_NAME "/etc/hosts"
|
||||
#endif
|
||||
|
||||
#ifndef MG_RESOLV_CONF_FILE_NAME
|
||||
#define MG_RESOLV_CONF_FILE_NAME "/etc/resolv.conf"
|
||||
#endif
|
||||
|
||||
#endif /* CS_PLATFORM == CS_P_UNIX */
|
||||
#endif /* CS_COMMON_PLATFORMS_PLATFORM_UNIX_H_ */
|
||||
#ifdef MG_MODULE_LINES
|
||||
|
||||
Reference in new issue
Block a user