代码之家  ›  专栏  ›  技术社区  ›  woodandfire

Windows UWP vpn配置文件的ServerUris属性中要填写的内容

  •  0
  • woodandfire  · 技术社区  · 3 年前

    微软官方UWP vpn示例:UWPVPpluginSample,在CreateAppProfile()部分函数中,如下所示。

    // Hard coding parameters for the profile
                VpnPlugInProfile profile = new VpnPlugInProfile();
                ...
    
                **profile.ServerUris.Add(new Uri("http://10.137.192.135"));**
                var returnedStatus = await agent.AddProfileFromObjectAsync(profile);
                ...
    

    我不知道应该在“ServerURI”属性中填写什么url,以及该url中应该提供什么内容。

    以及:

    var connectStatus = await agent.ConnectProfileAsync(pluginProfile);
    

    connectStatus始终返回Other或CannotFindProfile。

    0 回复  |  直到 3 年前