How nette understands that site is running at localhost

romal
Member | 16
+
0
-

From documentation: “Nette uses autodetection: if you run the site on localhost, it runs in developer mode.”
So the question is “How nette understands that site is running at localhost?”
What file, what lines?

romal
Member | 16
+
0
-

Are there hostings with $_SERVER[‘REMOTE_ADDR’] = 127.0.0.1?

dkorpar
Member | 136
+
0
-

well if there's missconfigured proxy you could get that

David Grudl
Nette Core | 8229
+
+1
-

How nette understands that site is running at localhost?

  • IP is 127.0.0.1 or ::1
  • there is no proxy header