Skip to content
This repository was archived by the owner on Mar 19, 2022. It is now read-only.

Can't save config when connecting though "Intent Extension". #223

Description

@houmie

Hi @ss-abramchuk,

I hope you are feeling better, mate.

When trying to connect the following steps have to be taken:

self.tunnelProviderManager?.loadFromPreferences and then 
self.tunnelProviderManager?.saveToPreferences

if no errors then load the config again:
self.tunnelProviderManager?.loadFromPreferences
and only then connect:
self.tunnelProviderManager!.connection.startVPNTunnel()

This works fine from the app. But when using Siri shortcuts and trying to connect though Intent extension, it fails at saving the config:

Failed to save configuration: Error Domain=NEVPNErrorDomain Code=1 "configuration type is wrong" UserInfo={NSLocalizedDescription=configuration type is wrong}

Is there anyway to know why it thinks the config is wrong?

Many Thanks,
Houman

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions