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
|
@ -84,11 +84,8 @@ func socksAcceptLoop(ln *pt.SocksListener, config sf.ClientConfig, shutdown chan
|
|||
if arg, ok := conn.Req.Args.Get("sqsqueue"); ok {
|
||||
config.SQSQueueURL = arg
|
||||
}
|
||||
if arg, ok := conn.Req.Args.Get("sqsakid"); ok {
|
||||
config.SQSAccessKeyID = arg
|
||||
}
|
||||
if arg, ok := conn.Req.Args.Get("sqsskey"); ok {
|
||||
config.SQSSecretKey = arg
|
||||
if arg, ok := conn.Req.Args.Get("sqscreds"); ok {
|
||||
config.SQSCredsStr = arg
|
||||
}
|
||||
if arg, ok := conn.Req.Args.Get("fronts"); ok {
|
||||
if arg != "" {
|
||||
|
@ -169,8 +166,7 @@ func main() {
|
|||
frontDomainsCommas := flag.String("fronts", "", "comma-separated list of front domains")
|
||||
ampCacheURL := flag.String("ampcache", "", "URL of AMP cache to use as a proxy for signaling")
|
||||
sqsQueueURL := flag.String("sqsqueue", "", "URL of SQS Queue to use as a proxy for signaling")
|
||||
sqsAccessKeyId := flag.String("sqsakid", "", "Access Key ID for credentials to access SQS Queue ")
|
||||
sqsSecretKey := flag.String("sqsskey", "", "Secret Key for credentials to access SQS Queue")
|
||||
sqsCredsStr := flag.String("sqscreds", "", "credentials to access SQS Queue")
|
||||
logFilename := flag.String("log", "", "name of log file")
|
||||
logToStateDir := flag.Bool("log-to-state-dir", false, "resolve the log file relative to tor's pt state dir")
|
||||
keepLocalAddresses := flag.Bool("keep-local-addresses", false, "keep local LAN address ICE candidates")
|
||||
|
@ -239,8 +235,7 @@ func main() {
|
|||
BrokerURL: *brokerURL,
|
||||
AmpCacheURL: *ampCacheURL,
|
||||
SQSQueueURL: *sqsQueueURL,
|
||||
SQSAccessKeyID: *sqsAccessKeyId,
|
||||
SQSSecretKey: *sqsSecretKey,
|
||||
SQSCredsStr: *sqsCredsStr,
|
||||
FrontDomains: frontDomains,
|
||||
ICEAddresses: iceAddresses,
|
||||
KeepLocalAddresses: *keepLocalAddresses || *oldKeepLocalAddresses,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue