Skip to content

Conversation

@EvgeniGordeev
Copy link

No description provided.

@@ -1,5 +1,8 @@
#!/usr/bin/env bash

if [[ "${DEBUG}" == "true" ]]; then
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provide the ability to debug the entrypoint script.

if is_cname "${my_add}"; then
# Try ping command first
if ! tmp="$( ping -c1 "${my_add}" 2>&1 | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | head -1 )"; then
if ! tmp="$( ping -c1 -W1 "${my_add}" 2>&1 | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | head -1 )"; then
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

specify timeout of 1 sec for ping resolution to speed up dns server start

@cytopia cytopia mentioned this pull request Mar 16, 2022
2 tasks
@cytopia
Copy link
Owner

cytopia commented Mar 16, 2022

@EvgeniGordeev thanks for the PR. I have made a major rewrite which addresses the fix here as well: #36

@cytopia cytopia closed this in #36 Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants