Giter Club home page Giter Club logo

fcraft's People

Contributors

descention avatar jesseobrien avatar mstefarov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fcraft's Issues

Failing to start with ipv6 address

It gets stuck in 'Resolving external point'. This is due to this line:

IPEndPoint BindIPEndPointCallback( ServicePoint servicePoint, IPEndPoint remoteEndPoint,
    int retryCount ) {
        return new IPEndPoint( InternalIP, 0 );
}

InternalIP is an ipv4 address, so it ends up looping 2,147,483,647 times. However, because I have IPv6, it is using an ipv6 socket to connect to fcraft.net's IP check uri.

The simple fix is to do this instead: https://github.com/123DMWM/ProCraft/blob/b2ed46e61c9d533c421c85ef859cec8a94979f8e/fCraft/System/Server.cs#L1236

To also ensure that the external IP shown is the IPv4 address, you can prefer ipv4 connections with this https://github.com/123DMWM/ProCraft/blob/b2ed46e61c9d533c421c85ef859cec8a94979f8e/fCraft/System/Utils/HttpUtil.cs

Vector3F.CompareTo always returns 0.

public int CompareTo( Vector3I other ) {
      return Math.Sign( LengthSquared - LengthSquared );
}

public int CompareTo( Vector3F other ) {
      return Math.Sign( LengthSquared - LengthSquared );
}

Guessing you meant other.LengthSquared the second time?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.