Continue sketch if blynk not connected to local server

Hello everyone, i have project that already working with esp8266 and w5500 ethernet connection. My question i how to run sketch without ethernet link? When i disconnect lan cable and turn on, the device didn’t start the sketch, when the cable is connected and turn on, everything works with local server. I want to run the sketch if my local server of blynk crashes.
Something like this:

void loop()
{
  if (Ethernet.linkStatus() == LinkOFF) {
    Serial.println("Link status: OFF");
    without_internet();
  }
  else {
      Blynk.run();
      with_internet();
  }

}

Thank you very much!!!

Stop using Blynk.begin() and manually manage your Ethernet connection and use Blynk.config() and Blynk.connect() instead.

Pete.

Can You give me a sample please ?

With Blynk.config() and Blynk.connect() it doesn’t connect

I don’t have any personal examples for Ethernet.

It rather depends what you’ve done with your code. Difficult to comment without seeing the revised sketch in its entirety and the corresponding serial output.

Pete.