mirror of
https://github.com/Termix-SSH/Mobile.git
synced 2026-07-28 05:51:43 +02:00
23 lines
701 B
JavaScript
23 lines
701 B
JavaScript
const { withInfoPlist } = require("@expo/config-plugins");
|
|
|
|
const withIOSNetworkSecurity = (config) => {
|
|
return withInfoPlist(config, (config) => {
|
|
const existingPlist = config.modResults;
|
|
|
|
existingPlist.NSAppTransportSecurity = {
|
|
NSAllowsArbitraryLoads: true,
|
|
NSAllowsLocalNetworking: true,
|
|
NSAllowsArbitraryLoadsInWebContent: true,
|
|
NSAllowsArbitraryLoadsForMedia: true,
|
|
};
|
|
|
|
existingPlist.NSLocalNetworkUsageDescription =
|
|
"Termix needs to connect to servers on your local network for SSH and other services.";
|
|
|
|
existingPlist.NSBonjourServices = ["_ssh._tcp", "_sftp-ssh._tcp"];
|
|
|
|
return config;
|
|
});
|
|
};
|
|
|
|
module.exports = withIOSNetworkSecurity; |