Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aws
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
aws
Commits
ac43bcf6
Commit
ac43bcf6
authored
Aug 18, 2024
by
Ahmad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inikt
parent
18117d2f
Pipeline
#217
canceled with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app.js
app.js
+3
-3
No files found.
app.js
View file @
ac43bcf6
...
...
@@ -90,12 +90,12 @@ async function openAllPorts(lightsail, instanceName) {
async
function
disableIpv6
(
lightsail
,
instanceName
)
{
const
params
=
{
instan
ceName
:
instanceName
,
disableIpv6
:
true
,
resour
ceName
:
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment