diff --git a/client/src/www/app/outline_server_repository/access_key_serialization.ts b/client/src/www/app/outline_server_repository/access_key_serialization.ts index 035ed437b0f..84730bd6899 100644 --- a/client/src/www/app/outline_server_repository/access_key_serialization.ts +++ b/client/src/www/app/outline_server_repository/access_key_serialization.ts @@ -71,7 +71,7 @@ function parseShadowsocksSessionConfigJson(responseBody: string): ShadowsocksSes export async function fetchShadowsocksSessionConfig(configLocation: URL): Promise { let response; try { - response = await fetch(configLocation, {cache: 'no-store', redirect: 'follow'}); + response = await fetch(configLocation, {cache: 'no-store', redirect: 'follow', headers: {'Outline-Version': env.APP_VERSION}}); } catch (cause) { throw new errors.SessionConfigFetchFailed('Failed to fetch VPN information from dynamic access key.', {cause}); }