Skip to content

Commit 4493373

Browse files
fixup! fixup! use SNI to mux webhooker
1 parent 9863b12 commit 4493373

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

v2/transport_auth.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
)
1515

1616
const (
17-
purposePluginRPC = "rpc.plugin"
18-
purposePluginWebhook = "webhook.plugin"
17+
purposePluginRPC = "rpc"
18+
purposePluginWebhook = "webhook"
1919
)
2020

2121
const ServerTLSName = "server.gotify.home.arpa"
@@ -26,7 +26,7 @@ func BuildPluginTLSName(purpose string, moduleName string) string {
2626
moduleNameParts[i] = hex.EncodeToString([]byte(moduleNameParts[i]))
2727
}
2828
slices.Reverse(moduleNameParts)
29-
return fmt.Sprintf("%s.%s.plugins.gotify.home.arpa", strings.Join(moduleNameParts, "."), purpose)
29+
return fmt.Sprintf("%s.%s.plugin.gotify.home.arpa", purpose, strings.Join(moduleNameParts, "."))
3030
}
3131

3232
type EphemeralTLSClient struct {

0 commit comments

Comments
 (0)