You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 70f440d
Browse filesBrowse the repository at this point in the historyBrowse files
{"source-addresses", "SOURCE_ADDRESSES", "addresses checks are sent from, shown on the about page", func(c*Config) *[]string { return&c.SourceAddresses }},
144
146
}
145
147
146
148
// commaList binds a comma-separated value to a slice.
Copy file name to clipboardExpand all lines: server/public/about.html
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -23,8 +23,10 @@ <h2>What is recorded</h2>
23
23
<p>To have a site excluded or a record removed, write to <ahref="mailto:{{.Contact}}">{{.Contact}}</a>.</p>
24
24
{{- end}}
25
25
26
-
<h2>Recognising the check in your logs</h2>
27
-
<p>Requests carry a <code>User-Agent</code> beginning with <code>php2shell-check</code> and a link to this page.</p>
26
+
<h2>Recognising and allowing the check</h2>
27
+
<p>Requests carry a <code>User-Agent</code> beginning with <code>php2shell-check</code> and a link to this page.
28
+
{{- if .Sources}} They come from {{range $i, $a := .Sources}}{{if $i}} and {{end}}<code>{{$a}}</code>{{end}}.{{end}}</p>
29
+
<p>Some firewalls and hosts refuse the check, and the result then says it was blocked or got no answer. To let it through, allow {{if .Sources}}these addresses{{else}}this User-Agent{{end}} while you check, or check on the server with the commands every result lists.</p>
28
30
29
31
<h2>Source</h2>
30
32
<p>The service is free software under the BSD 2-Clause license. The source is at <ahref="{{.SourceURL}}">{{.SourceURL}}</a>.</p>
if!strings.Contains(listed, "They come from <code>192.0.2.10</code> and <code>2001:db8::10</code>.") ||!strings.Contains(listed, "allow these addresses") {
371
+
t.Errorf("addresses missing from the about page")
372
+
}
373
+
ifplain:=about(nil); strings.Contains(plain, "They come from") ||!strings.Contains(plain, "allow this User-Agent") {
374
+
t.Errorf("the about page without addresses is wrong")
0 commit comments