mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-07 03:38:31 +00:00
Make some more fixes to prod
This commit is contained in:
parent
69bee64a59
commit
da336b3ea8
6 changed files with 90 additions and 28 deletions
|
@ -46,6 +46,7 @@
|
|||
#include "libc/sysv/consts/timer.h"
|
||||
#include "libc/time/struct/tm.h"
|
||||
#include "net/http/http.h"
|
||||
#include "net/http/ip.h"
|
||||
#include "third_party/getopt/getopt.h"
|
||||
#include "third_party/musl/passwd.h"
|
||||
|
||||
|
@ -355,7 +356,7 @@ void WritePid(void) {
|
|||
bool IsMyIp(uint32_t ip) {
|
||||
uint32_t *p;
|
||||
for (p = g_myips; *p; ++p) {
|
||||
if (ip == *p) {
|
||||
if (ip == *p && !IsTestnetIp(ip)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue