This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: https://github.com/microsoft/WSL/issues/5068#issuecomment-970049434 | |
https://github.com/sakai135/wsl-vpnkit with Pulse Secure Desktop Client | |
I had used this successfully but my company was skeptical with using a public GitHub repo solution and recommended not having it. | |
In my context of using Pulse Secure VPN, I fixed this by both changing /etc/resolv.conf as well as adjusting the networks MTU value to match the VPN's. Here's how: | |
From WSL, edit /etc/wsl.conf (if not present, create it with touch /etc/wsl.conf): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://godbolt.org/z/3s1r3K4rs | |
#include <string> | |
// For c++ versions earlier than 17 | |
#if __cplusplus < 201703L | |
// See https://isocpp.org/wiki/faq/pointers-to-members#macro-for-ptr-to-memfn | |
// and https://isocpp.org/wiki/faq/big-picture#use-evil-things-sometimes | |
#define CALL_MEMBER_FN(object,ptrToMember) (((object).*(ptrToMember))()) | |
#else | |
#include <functional> |