mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Switch to sqscreds param for passing in SQS credentials
This commit is contained in:
parent
fe56eaddf4
commit
9fe2ca58a0
7 changed files with 89 additions and 18 deletions
|
@ -94,11 +94,11 @@ func newBrokerChannelFromConfig(config ClientConfig) (*BrokerChannel, error) {
|
|||
if config.AmpCacheURL != "" || config.BrokerURL != "" {
|
||||
log.Fatalln("Multiple rendezvous methods specified. " + rendezvousErrorMsg)
|
||||
}
|
||||
if config.SQSAccessKeyID == "" || config.SQSSecretKey == "" {
|
||||
log.Fatalln("sqsakid and sqsskey must be specified to use SQS rendezvous method.")
|
||||
if config.SQSCredsStr == "" {
|
||||
log.Fatalln("sqscreds must be specified to use SQS rendezvous method.")
|
||||
}
|
||||
log.Println("Through SQS queue at:", config.SQSQueueURL)
|
||||
rendezvous, err = newSQSRendezvous(config.SQSQueueURL, config.SQSAccessKeyID, config.SQSSecretKey, brokerTransport)
|
||||
rendezvous, err = newSQSRendezvous(config.SQSQueueURL, config.SQSCredsStr, brokerTransport)
|
||||
} else if config.AmpCacheURL != "" && config.BrokerURL != "" {
|
||||
log.Println("Through AMP cache at:", config.AmpCacheURL)
|
||||
rendezvous, err = newAMPCacheRendezvous(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue