TUN-6015: Add RPC method for pushing local config

This commit is contained in:
João Oliveirinha
2022-04-20 17:52:55 +01:00
parent 8f0498f66a
commit d22cb4a6ca
4 changed files with 454 additions and 220 deletions

View File

@@ -129,6 +129,11 @@ type testConnectionRegistrationServer struct {
err error
}
func (t *testConnectionRegistrationServer) UpdateLocalConfiguration(ctx context.Context, config []byte) error {
// do nothing at this point
return nil
}
func (t *testConnectionRegistrationServer) RegisterConnection(ctx context.Context, auth TunnelAuth, tunnelID uuid.UUID, connIndex byte, options *ConnectionOptions) (*ConnectionDetails, error) {
if auth.AccountTag != testAccountTag {
panic("bad account tag: " + auth.AccountTag)