Treat 127.0.0.1, [::1], and hostname as localhost

This commit is contained in:
Tatsuya Kinoshita
2021-04-23 20:16:50 +09:00
parent 552dff061b
commit 59ea885da0
6 changed files with 38 additions and 38 deletions

6
fm.h
View File

@@ -19,6 +19,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
@@ -135,6 +136,10 @@ void bzero(void *, int);
#define DICTBUFFERNAME "*dictionary*"
#endif /* USE_DICT */
#ifndef HOST_NAME_MAX
#define HOST_NAME_MAX 255
#endif
/*
* Line Property
*/
@@ -837,6 +842,7 @@ global char PreserveTimestamp init(TRUE);
global char ArgvIsURL init(TRUE);
global char MetaRefresh init(FALSE);
global char LocalhostOnly init(FALSE);
global char* HostName init(NULL);
global char fmInitialized init(FALSE);
global char QuietMessage init(FALSE);