From 6e32bf4e23e9438a04e5a4e60fdee5c27b9274a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Wed, 22 Oct 2014 13:14:33 +0800 Subject: [PATCH] Log Remote address for each request --- net/WebFrame.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/WebFrame.js b/net/WebFrame.js index 591a4f5..1389507 100644 --- a/net/WebFrame.js +++ b/net/WebFrame.js @@ -43,7 +43,8 @@ Framework.prototype.run = function() } Dragonfly.Info( - method + ": " + encodeURI( this.HTTP.request.raw.url ) + this.HTTP.request.remoteAddr + " " + + method + ": " + encodeURI( this.HTTP.request.raw.url ) + " - " + this.HTTP.request.raw.headers["user-agent"] , Dragonfly.Visibility.VISIBLE );