Skip to content

Commit 4676ef5

Browse files
committed
more local ip detection
1 parent 531e39a commit 4676ef5

File tree

3 files changed

+10
-21
lines changed

3 files changed

+10
-21
lines changed

models/DebuggerService.cfc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,7 @@ component
206206
"httpReferer" : cgi.HTTP_REFERER,
207207
"formData" : serializeJSON( form ?: {} ),
208208
"inetHost" : discoverInetHost(),
209-
"dockerHost" : ( isNull( cgi.local_host ) ? "" : cgi.local_host ),
210-
"dockerIp" : ( isNull( cgi.local_addr ) ? "0.0.0.0" : cgi.local_addr ),
209+
"localIp" : ( isNull( cgi.local_addr ) ? "0.0.0.0" : cgi.local_addr ),
211210
"luceeId" : ( server.keyExists( "lucee" ) ? getLuceeID() : {} )
212211
};
213212

views/main/partials/profilerReport.cfm

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,12 @@
128128
#args.profiler.threadInfo.replaceNoCase( "Thread", "" )#
129129
</div>
130130

131-
<cfif len( args.profiler.dockerHost )>
132-
<div class="ml10" title="Docker Info">
133-
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
134-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4" />
135-
</svg>
136-
#args.profiler.dockerHost# / #args.profiler.dockerIp#
137-
</div>
138-
</cfif>
131+
<div class="ml10" title="Machine Ip">
132+
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
133+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4" />
134+
</svg>
135+
#args.profiler.localIp#
136+
</div>
139137

140138
<div class="ml10" title="Response Content Type">
141139
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">

views/main/partials/profilers.cfm

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,9 @@
6060
#thisProfiler.threadInfo.replaceNoCase( "Thread", "" )#
6161
</div>
6262

63-
<cfif len( thisProfiler.dockerHost ) and thisProfiler.inetHost neq thisProfiler.dockerHost>
64-
<div class="mt5">
65-
#thisProfiler.dockerHost#
66-
</div>
67-
</cfif>
68-
69-
<cfif thisProfiler.dockerIp neq "127.0.0.1">
70-
<div class="mt5">
71-
#thisProfiler.dockerIp#
72-
</div>
73-
</cfif>
63+
<div class="mt5">
64+
#thisProfiler.localIp#
65+
</div>
7466
</td>
7567

7668
<!--- Response & Content TYPE --->

0 commit comments

Comments
 (0)