1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-12-20 19:09:07 +01:00

update macos check

This commit is contained in:
jimyag 2022-12-22 22:19:02 +08:00 committed by Juan Font
parent 5feadbf3fc
commit b4ff22935c
2 changed files with 11 additions and 2 deletions

View File

@ -255,7 +255,7 @@ func (h *Headscale) ApplePlatformConfig(
writer.Header().Set("Content-Type", "text/plain; charset=utf-8") writer.Header().Set("Content-Type", "text/plain; charset=utf-8")
writer.WriteHeader(http.StatusBadRequest) writer.WriteHeader(http.StatusBadRequest)
_, err := writer.Write( _, err := writer.Write(
[]byte("Invalid platform, only ios and macos is supported"), []byte("Invalid platform. Only ios, macos-app-store and macos-standalone are supported"),
) )
if err != nil { if err != nil {
log.Error(). log.Error().

View File

@ -68,7 +68,16 @@
<!-- <!--
<pre><code>curl {{.URL}}/apple/ios</code></pre> <pre><code>curl {{.URL}}/apple/ios</code></pre>
--> -->
<pre><code>curl {{.URL}}/apple/macos</code></pre> <ul>
<li>
for app store client:
<code>curl {{.URL}}/apple/macos-app-store</code>
</li>
<li>
for standalone client:
<code>curl {{.URL}}/apple/macos-standalone</code>
</li>
</ul>
<h2>Profiles</h2> <h2>Profiles</h2>