Commit ac43bcf6 authored by Ahmad's avatar Ahmad

inikt

parent 18117d2f
Pipeline #217 canceled with stages
......@@ -90,12 +90,12 @@ async function openAllPorts(lightsail, instanceName) {
async function disableIpv6(lightsail, instanceName) {
const params = {
instanceName: instanceName,
disableIpv6: true,
resourceName: instanceName,
ipAddressType: 'ipv4', // This disables IPv6 and keeps only IPv4
};
return new Promise((resolve, reject) => {
lightsail.updateInstanceNetworking(params, (err, data) => {
lightsail.setIpAddressType(params, (err, data) => {
if (err) {
console.error(`Error disabling IPv6 for instance ${instanceName}:`, err);
reject(err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment