cosmopolitan icon indicating copy to clipboard operation
cosmopolitan copied to clipboard

Funny callback to US Department of Defense IP address when building cosmopolitan

Open mulle-nat opened this issue 1 year ago • 1 comments

Hi

I am building cosmopolitan version 2.1.1 and I get these funny warnings at the very start of running ./build/bootstrap/make.com m="":

warning: attempted to communicate with public ip 6.6.6.0
warning: attempted to communicate with public ip 6.6.6.0
warning: attempted to communicate with public ip 6.6.6.0
warning: attempted to communicate with public ip 6.6.6.0

Is this expected and what is the purpose ?

To me the IP address is meaningless. It supposedly belongs to the US Department of Defense, but I can't traceroute to it. I hope your code isn't backdoored :wink:

I thought the method might come from my sandbox, but then I noticed that the sandbox wasn't active to begin with, as I am running as a different user. I looked into my various system logfiles, but didn't notice any message pertaining to this IP address.

An observation: I see this if I redirect my output to a logfile. Then I don't see the ♥cosmo output. and the compilation is very slow in the beginning. If I "watch" the output on the console, then I see ♥cosmo and everything is fairly fast. Because in 2.1 the output was apparently written directly to the console device, the redirection didn't work well anyway. That's better in 2.2, but the bootstrapping is so slow, that I remain on 2.1 for now (but I disgress).

Generally I'd assume that the fault lies on my side, somehow. But I have no idea how I could induce this behaviour.

mulle-nat avatar Feb 15 '23 14:02 mulle-nat

It may be this test and this test, which apparently try to connect to this IP address to confirm that make is correctly being blocked from connecting to external IP addresses. Not sure why you got four warnings instead of two, however.

alysbrooks avatar Mar 03 '23 08:03 alysbrooks