forked from Silverfish/proton-bridge
Other: Switch to mail-api.proton.me
This commit is contained in:
@ -20,4 +20,4 @@
|
|||||||
package constants
|
package constants
|
||||||
|
|
||||||
// APIHost is our API address.
|
// APIHost is our API address.
|
||||||
const APIHost = "https://api.protonmail.ch"
|
const APIHost = "https://mail-api.proton.me"
|
||||||
|
|||||||
@ -22,7 +22,7 @@ package constants
|
|||||||
import "os"
|
import "os"
|
||||||
|
|
||||||
// APIHost is our API address.
|
// APIHost is our API address.
|
||||||
var APIHost = "https://api.protonmail.ch"
|
var APIHost = "https://mail-api.proton.me"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
if apiHost := os.Getenv("BRIDGE_HOST_URL"); apiHost != "" {
|
if apiHost := os.Getenv("BRIDGE_HOST_URL"); apiHost != "" {
|
||||||
|
|||||||
@ -31,7 +31,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func getRootURL() string {
|
func getRootURL() string {
|
||||||
return "https://api.protonmail.ch"
|
return "https://mail-api.proton.me"
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestTLSPinValid(t *testing.T) {
|
func TestTLSPinValid(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user