privacylab / talek

a Private Publish Subscribe System
BSD 2-Clause "Simplified" License
48 stars 5 forks source link

bug: talekutil generated configuration produces incompatible address lines #104

Open mixmasala opened 8 months ago

mixmasala commented 8 months ago
[Frontend:Talek Frontend] 2024/03/11 11:56:41 frontend.go:144: Periodic update of database sent to replicas.
[Frontend:Talek Frontend] 2024/03/11 11:56:42 frontend.go:99: write to 619,75 serialized.
[Frontend:Talek Frontend] 2024/03/11 11:56:42 frontend.go:226: Read: add to batch, size=1
[Frontend:Talek Frontend] 2024/03/11 11:56:42 frontend.go:106: Error writing to replica 0: Post "localhost:8081": unsupported protocol scheme "localhost"

using client configuration values:

{"NumBuckets": 1024, "BucketDepth": 4, "DataSize": 1024, "BloomFalsePositive": 0.05, "InterestMultiple": 10, "InterestSeed": -3124539337625645010, "MaxLoadFactor": 0.95, "LoadFactorStep": 0.05, "WriteInterval": "1000000000", "ReadInterval": "1000000000", "TrustDomains": [{"Name": "replica1", "Address": "localhost:8081", "IsValid": true, "IsDistributed": false, "PublicKey": [95, 197, 167, 60, 240, 25, 194, 4, 150, 180, 129, 209, 17, 214, 245, 154, 177, 236, 40, 1, 74, 107, 245, 76, 59, 2, 162, 170, 178, 184, 175, 124], "SignPublicKey": [62, 43, 176, 42, 189, 156, 14, 80, 141, 6, 250, 132, 148, 250, 112, 235, 113, 123, 109, 75, 173, 154, 39, 4, 194, 45, 62, 223, 126, 5, 81, 71]}, {"Name": "replica2", "Address": "localhost:8082", "IsValid": true, "IsDistributed": false, "PublicKey": [6, 22, 215, 180, 125, 154, 36, 43, 56, 133, 135, 169, 45, 241, 221, 195, 33, 87, 134, 184, 172, 108, 239, 239, 33, 166, 254, 34, 174, 29, 136, 85], "SignPublicKey": [79, 75, 225, 68, 193, 249, 74, 212, 89, 188, 20, 105, 187, 173, 212, 25, 152, 232, 187, 60, 71, 227, 198, 3, 253, 83, 146, 180, 196, 47, 249, 133]}, {"Name": "replica3", "Address": "localhost:8083", "IsValid": true, "IsDistributed": false, "PublicKey": [197, 63, 149, 23, 60, 106, 163, 7, 166, 30, 107, 82, 55, 206, 225, 53, 243, 216, 167, 246, 194, 27, 158, 231, 102, 225, 202, 37, 142, 253, 129, 61], "SignPublicKey": [82, 171, 171, 205, 93, 10, 235, 119, 214, 133, 60, 128, 248, 72, 184, 185, 96, 133, 63, 136, 132, 157, 117, 194, 217, 85, 43, 36, 204, 180, 216, 180]}], "FrontendAddr": "http://127.0.0.1:8080/rpc"}

from talekutil.go's default values for address "localhost:9000" - this should be a URL