mirror of
https://github.com/nbd-wtf/satdress.git
synced 2024-11-11 16:30:35 +00:00
increase default makeinvoice client timeout because people are using tor.
This commit is contained in:
parent
a8fd253bc3
commit
a204288679
2
go.mod
2
go.mod
|
@ -5,7 +5,7 @@ go 1.16
|
|||
require (
|
||||
github.com/cockroachdb/pebble v0.0.0-20210812144839-61318a019370
|
||||
github.com/fiatjaf/go-lnurl v1.4.0
|
||||
github.com/fiatjaf/makeinvoice v1.3.0
|
||||
github.com/fiatjaf/makeinvoice v1.3.1
|
||||
github.com/gorilla/mux v1.8.0
|
||||
github.com/kelseyhightower/envconfig v1.4.0
|
||||
github.com/lib/pq v1.10.2
|
||||
|
|
4
go.sum
4
go.sum
|
@ -121,8 +121,8 @@ github.com/fiatjaf/lightningd-gjson-rpc v1.4.0 h1:Iv5tt4YuNoSMfR39wiV0tqnHYTJ85o
|
|||
github.com/fiatjaf/lightningd-gjson-rpc v1.4.0/go.mod h1:SQGA0qcY2qypaMXDQlE5V5+2MnLZzQ7NzfRsScliFeE=
|
||||
github.com/fiatjaf/ln-decodepay v1.0.0 h1:1YUMjvLock+BicMNwoZ/OA3oG2ZYEaJ8AzdS6EGVMTQ=
|
||||
github.com/fiatjaf/ln-decodepay v1.0.0/go.mod h1:/LWK+ZUa3i8MqbRjIMAiVQS2+NbhwKWlwib2n446cMQ=
|
||||
github.com/fiatjaf/makeinvoice v1.3.0 h1:DHOOtVV7+regnFKAncK1gKrbyqt+LiwSjvVLXiLzcSI=
|
||||
github.com/fiatjaf/makeinvoice v1.3.0/go.mod h1:Q5f85OaXDKf+2JY0vnW/50CGE3Sfc4KnJf4VIJHus1M=
|
||||
github.com/fiatjaf/makeinvoice v1.3.1 h1:RprsP0AUjWFxKQi9Qh7Q4pFa3oFpg3kygAtvojOHZoU=
|
||||
github.com/fiatjaf/makeinvoice v1.3.1/go.mod h1:Q5f85OaXDKf+2JY0vnW/50CGE3Sfc4KnJf4VIJHus1M=
|
||||
github.com/flosch/pongo2 v0.0.0-20190707114632-bbf5a6c351f4/go.mod h1:T9YF2M40nIgbVgp3rreNmTged+9HrbNTIQf1PsaIiTA=
|
||||
github.com/frankban/quicktest v1.2.2/go.mod h1:Qh/WofXFeiAFII1aEBu529AtJo6Zg2VHscnEsbBnJ20=
|
||||
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
|
||||
|
|
3
main.go
3
main.go
|
@ -48,6 +48,9 @@ func main() {
|
|||
log.Fatal().Err(err).Msg("couldn't process envconfig.")
|
||||
}
|
||||
|
||||
// increase default makeinvoice client timeout because people are using tor
|
||||
makeinvoice.Client = &http.Client{Timeout: 25 * time.Second}
|
||||
|
||||
s.Domain = strings.ToLower(s.Domain)
|
||||
|
||||
if s.TorProxyURL != "" {
|
||||
|
|
Loading…
Reference in New Issue
Block a user